Class: ODDB::State::Drugs::TestActiveAgentState::StubApp

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubApp) initialize

A new instance of StubApp



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

def initialize
  @update_called = false
end

Instance Attribute Details

- (Object) sequence

Returns the value of attribute sequence



37
38
39
# File 'test/test_state/drugs/activeagent.rb', line 37

def sequence
  @sequence
end

- (Object) soundex_substances(name)



43
44
45
# File 'test/test_state/drugs/activeagent.rb', line 43

def soundex_substances(name)
  @soundex_substances ||= []
end

- (Object) substances



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

def substances
  (@substances ||= {}).values
end

- (Object) update_called (readonly)

Returns the value of attribute update_called



38
39
40
# File 'test/test_state/drugs/activeagent.rb', line 38

def update_called
  @update_called
end

Instance Method Details

- (Object) substance(substance_name)



46
47
48
# File 'test/test_state/drugs/activeagent.rb', line 46

def substance(substance_name)
  (@substances ||= {})[substance_name] 
end

- (Object) update(pointer, values)



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

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