Class: ODDB::State::Drugs::StubMGFStateSession

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubMGFStateSession) initialize

A new instance of StubMGFStateSession



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

def initialize
  @merge_galenic_forms_called = false
end

Instance Attribute Details

- (Object) galenic_forms=(value) (writeonly)

Sets the attribute galenic_forms

Parameters:

  • value

    the value to set the attribute galenic_forms to.



15
16
17
# File 'test/test_state/drugs/mergegalenicform.rb', line 15

def galenic_forms=(value)
  @galenic_forms = value
end

- (Object) merge_galenic_forms_called (readonly)

Returns the value of attribute merge_galenic_forms_called



16
17
18
# File 'test/test_state/drugs/mergegalenicform.rb', line 16

def merge_galenic_forms_called
  @merge_galenic_forms_called
end

- (Object) user_input(key)



29
30
31
# File 'test/test_state/drugs/mergegalenicform.rb', line 29

def user_input(key)
  (@user_input ||= {})[key]
end

Instance Method Details

- (Object) app



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

def app
  self
end

- (Object) galenic_form(key)



23
24
25
# File 'test/test_state/drugs/mergegalenicform.rb', line 23

def galenic_form(key)
  (@galenic_forms ||= {})[key]
end

- (Object) merge_galenic_forms(source, target)



26
27
28
# File 'test/test_state/drugs/mergegalenicform.rb', line 26

def merge_galenic_forms(source, target)
  @merge_galenic_forms_called = true
end