Class: ODDB::View::Drugs::StubResultListModel

Inherits:
Object
  • Object
show all
Defined in:
test/test_view/drugs/resultlist.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubResultListModel) initialize

A new instance of StubResultListModel



64
65
66
# File 'test/test_view/drugs/resultlist.rb', line 64

def initialize
  @package_count = 12
end

Instance Attribute Details

- (Object) package_count

Returns the value of attribute package_count



63
64
65
# File 'test/test_view/drugs/resultlist.rb', line 63

def package_count
  @package_count
end

Instance Method Details

- (Object) code



67
68
69
# File 'test/test_view/drugs/resultlist.rb', line 67

def code
  'A01AA01'
end

- (Object) description(foo)



73
74
75
# File 'test/test_view/drugs/resultlist.rb', line 73

def description(foo)
  'foo'
end

- (Boolean) has_ddd?

Returns:

  • (Boolean)


76
77
78
# File 'test/test_view/drugs/resultlist.rb', line 76

def has_ddd?
  false
end

- (Object) packages



70
71
72
# File 'test/test_view/drugs/resultlist.rb', line 70

def packages
  [StubResultListPackage.new]
end