Class: ODDB::State::Drugs::TestActiveAgentState::StubActiveAgent

Inherits:
Object
  • Object
show all
Includes:
Persistence
Defined in:
test/test_state/drugs/activeagent.rb

Constant Summary

Constants included from Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #pointer_descr, #structural_ancestors, #undiffable?, #update_values

Constructor Details

- (StubActiveAgent) initialize

A new instance of StubActiveAgent



60
61
62
# File 'test/test_state/drugs/activeagent.rb', line 60

def initialize
  @sequence = self
end

Instance Attribute Details

- (Object) active_agents

Returns the value of attribute active_agents



57
58
59
# File 'test/test_state/drugs/activeagent.rb', line 57

def active_agents
  @active_agents
end

- (Object) sequence (readonly)

Returns the value of attribute sequence



58
59
60
# File 'test/test_state/drugs/activeagent.rb', line 58

def sequence
  @sequence
end

Instance Method Details

- (Object) active_agent(substance)



63
64
65
# File 'test/test_state/drugs/activeagent.rb', line 63

def active_agent(substance)
  (@active_agents ||= {})[substance]
end

- (Object) substance



66
67
# File 'test/test_state/drugs/activeagent.rb', line 66

def substance
end