Class: ODDB::State::Drugs::TestFachinfoConfirmState::StubApp

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubApp) initialize

A new instance of StubApp



25
26
27
28
29
30
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 25

def initialize
  @update_pointers = []
  @update_values =[]
  @replace_pointers = []
  @replace_iksnrs =[]
end

Instance Attribute Details

- (Object) registration(iksnr)



31
32
33
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 31

def registration(iksnr)
  @registration if(@registration && @registration.iksnr == iksnr)
end

- (Object) replace_iksnrs (readonly)

Returns the value of attribute replace_iksnrs



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

def replace_iksnrs
  @replace_iksnrs
end

- (Object) replace_pointers (readonly)

Returns the value of attribute replace_pointers



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

def replace_pointers
  @replace_pointers
end

- (Object) update_pointers (readonly)

Returns the value of attribute update_pointers



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

def update_pointers
  @update_pointers
end

- (Object) update_result=(value) (writeonly)

Sets the attribute update_result

Parameters:

  • value

    the value to set the attribute update_result to.



24
25
26
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 24

def update_result=(value)
  @update_result = value
end

- (Object) update_values (readonly)

Returns the value of attribute update_values



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

def update_values
  @update_values
end

Instance Method Details

- (Object) replace_fachinfo(iksnr, pointer)



34
35
36
37
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 34

def replace_fachinfo(iksnr, pointer)
  @replace_iksnrs << iksnr
  @replace_pointers << pointer
end

- (Object) update(pointer, values)



38
39
40
41
42
# File 'test/test_state/drugs/fachinfoconfirm.rb', line 38

def update(pointer, values)
  @update_pointers.push(pointer)
  @update_values.push(values)
  @update_result
end