Class: StubActiveAgentApp

Inherits:
Object show all
Defined in:
test/test_model/activeagent.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) pointer (readonly)

Returns the value of attribute pointer



40
41
42
# File 'test/test_model/activeagent.rb', line 40

def pointer
  @pointer
end

- (Object) substances=(value) (writeonly)

Sets the attribute substances

Parameters:

  • value

    the value to set the attribute substances to.



39
40
41
# File 'test/test_model/activeagent.rb', line 39

def substances=(value)
  @substances = value
end

- (Object) values (readonly)

Returns the value of attribute values



40
41
42
# File 'test/test_model/activeagent.rb', line 40

def values
  @values
end

Instance Method Details

- (Object) parent



49
50
51
# File 'test/test_model/activeagent.rb', line 49

def parent
  StubActiveAgentParent.new
end

- (Object) substance(key)



41
42
43
44
45
46
47
48
# File 'test/test_model/activeagent.rb', line 41

def substance(key)
  unless @substances
    @substances = {
      key =>  StubActiveAgentSubstance.new(key)
    }
  end
  @substances[key]
end

- (Object) update(pointer, values)



52
53
54
# File 'test/test_model/activeagent.rb', line 52

def update(pointer, values)
  @pointer, @values = pointer, values
end