Class: ODDB::View::Drugs::StubResultListLookandfeel

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)



81
82
83
# File 'test/test_view/drugs/resultlist.rb', line 81

def method_missing(*args)
  nil
end

Instance Method Details

- (Object) attributes(key)



87
88
89
# File 'test/test_view/drugs/resultlist.rb', line 87

def attributes(key)
  {}
end

- (Object) format_price(*args)



90
91
92
# File 'test/test_view/drugs/resultlist.rb', line 90

def format_price(*args)
  '678.90'
end

- (Object) lookup(key, *args)



84
85
86
# File 'test/test_view/drugs/resultlist.rb', line 84

def lookup(key, *args)
  key.to_s
end