Class: TestMedwinPackagePlugin::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



137
138
139
140
141
142
143
144
145
146
147
148
# File 'test/test_plugin/medwin.rb', line 137

def initialize
  @pointers = []
  @values = []
  @packages = {
    :normal   => StubPackage.new('normal'),
    :none     =>  StubPackage.new('none'),
    :multiple =>  StubPackage.new('multiple'),
    #:nil     =>  StubPackage.new('nil'),
  }
  @sequence = StubSequence.new
  @sequence.packages = @packages
end

Instance Attribute Details

- (Object) packages (readonly)

Returns the value of attribute packages



136
137
138
# File 'test/test_plugin/medwin.rb', line 136

def packages
  @packages
end

- (Object) pointers (readonly)

Returns the value of attribute pointers



136
137
138
# File 'test/test_plugin/medwin.rb', line 136

def pointers
  @pointers
end

- (Object) values (readonly)

Returns the value of attribute values



136
137
138
# File 'test/test_plugin/medwin.rb', line 136

def values
  @values
end

Instance Method Details

- (Object) each_package(&block)



149
150
151
# File 'test/test_plugin/medwin.rb', line 149

def each_package(&block)
  @packages.each_value(&block)
end

- (Object) each_sequence(&block)



152
153
154
# File 'test/test_plugin/medwin.rb', line 152

def each_sequence(&block)
  block.call(@sequence)
end

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



155
156
157
158
# File 'test/test_plugin/medwin.rb', line 155

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