Class: ODDB::View::Drugs::StubResultListPackage

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

Instance Method Summary (collapse)

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(*args)



40
41
42
# File 'test/test_view/drugs/resultlist.rb', line 40

def method_missing(*args)
  nil
end

Instance Method Details

- (Object) active_agents



49
50
51
# File 'test/test_view/drugs/resultlist.rb', line 49

def active_agents
  []
end

- (Object) barcode



31
32
33
# File 'test/test_view/drugs/resultlist.rb', line 31

def barcode
  '7680123450124'
end

- (Object) company



34
35
36
# File 'test/test_view/drugs/resultlist.rb', line 34

def company
  StubResultListCompany.new("ywesee","true")
end

- (Object) company_name



37
38
39
# File 'test/test_view/drugs/resultlist.rb', line 37

def company_name
  company.name
end

- (Object) iksnr



58
59
60
# File 'test/test_view/drugs/resultlist.rb', line 58

def iksnr
  '1234567'
end

- (Object) price_exfactory



46
47
48
# File 'test/test_view/drugs/resultlist.rb', line 46

def price_exfactory
  12345
end

- (Object) price_public



43
44
45
# File 'test/test_view/drugs/resultlist.rb', line 43

def price_public
  67890
end

- (Object) registration



55
56
57
# File 'test/test_view/drugs/resultlist.rb', line 55

def registration
  self
end

- (Object) substances



52
53
54
# File 'test/test_view/drugs/resultlist.rb', line 52

def substances
  []
end