Class: ODDB::State::Drugs::TestGalenicGroup::StubSession

Inherits:
Object
  • Object
show all
Defined in:
test/test_state/drugs/galenicgroup.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) user_input(*keys)

Returns the value of attribute user_input



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'test/test_state/drugs/galenicgroup.rb', line 21

def user_input(*keys)
  if(keys.size > 1)
    res = {}
    keys.each { |key|
      res.store(key, user_input(key))
    }
    res
  else
    key = keys.first
    (@user_input ||= {
      :pointer =>  StubPointer.new
    })[key]
  end
end

Instance Method Details

- (Object) app



22
23
24
# File 'test/test_state/drugs/galenicgroup.rb', line 22

def app
  @app ||= StubApp.new
end