Class: ODDB::MeddataDelegator

Inherits:
Object
  • Object
show all
Defined in:
test/test_plugin/vaccines.rb

Instance Method Summary (collapse)

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(key, *args, &block)



20
21
22
# File 'test/test_plugin/vaccines.rb', line 20

def method_missing key, *args, &block
  @mock.send key, *args, &block
end

Instance Method Details

- (Object) setobj(mock)



23
24
25
# File 'test/test_plugin/vaccines.rb', line 23

def setobj mock
  @mock = mock
end