Class: ODDB::State::Drugs::StubResultSession

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubResultSession) initialize

A new instance of StubResultSession



72
73
74
# File 'test/test_state/drugs/result.rb', line 72

def initialize
  @user_input = {}
end

Instance Attribute Details

- (Object) user_input(key)

Returns the value of attribute user_input



71
72
73
# File 'test/test_state/drugs/result.rb', line 71

def user_input(key)
  @user_input[key]
end

Instance Method Details

- (Object) language



81
82
83
# File 'test/test_state/drugs/result.rb', line 81

def language 
  :to_s
end

- (Object) valid_values(key)



78
79
80
# File 'test/test_state/drugs/result.rb', line 78

def valid_values(key)
  [nil, 'generika', 'original']
end