Class: ODDB::State::Drugs::TestGalenicForm::StubSession

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) user_input(*keys)

Returns the value of attribute user_input



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'test/test_state/drugs/galenicform.rb', line 16

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



17
18
19
# File 'test/test_state/drugs/galenicform.rb', line 17

def app
  @app ||= StubApp.new
end

- (Object) lookandfeel



20
21
22
# File 'test/test_state/drugs/galenicform.rb', line 20

def lookandfeel
  StubLookandfeel.new
end