Class: TestMedwinCompanyPlugin::StubApp

Inherits:
Object
  • Object
show all
Defined in:
test/test_plugin/medwin.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubApp) initialize

A new instance of StubApp



28
29
30
31
32
33
34
35
# File 'test/test_plugin/medwin.rb', line 28

def initialize
  @pointers = []
  @values = []
  @companies = {
    'comp1' =>  StubCompany.new('ecosol ag', 'comp1'),
    'comp2' =>  StubCompany.new('foobar', 'comp2'),
  }
end

Instance Attribute Details

- (Object) companies (readonly)

Returns the value of attribute companies



27
28
29
# File 'test/test_plugin/medwin.rb', line 27

def companies
  @companies
end

- (Object) pointers (readonly)

Returns the value of attribute pointers



27
28
29
# File 'test/test_plugin/medwin.rb', line 27

def pointers
  @pointers
end

- (Object) values (readonly)

Returns the value of attribute values



27
28
29
# File 'test/test_plugin/medwin.rb', line 27

def values
  @values
end

Instance Method Details

- (Object) update(pointer, values, origin)



36
37
38
39
# File 'test/test_plugin/medwin.rb', line 36

def update(pointer, values, origin)
  @pointers << pointer
  @values << values
end