Class: ODDB::StubSequenceApp

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubSequenceApp) initialize

A new instance of StubSequenceApp



51
52
53
54
55
# File 'test/test_model/sequence.rb', line 51

def initialize
  @atc = {}
  @substances = []
  @galforms = {}
end

Instance Attribute Details

- (Object) pointer (readonly)

Returns the value of attribute pointer



50
51
52
# File 'test/test_model/sequence.rb', line 50

def pointer
  @pointer
end

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

Sets the attribute substances

Parameters:

  • value

    the value to set the attribute substances to.



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

def substances=(value)
  @substances = value
end

- (Object) values (readonly)

Returns the value of attribute values



50
51
52
# File 'test/test_model/sequence.rb', line 50

def values
  @values
end

Instance Method Details

- (Object) atc_class(atc)



56
57
58
# File 'test/test_model/sequence.rb', line 56

def atc_class(atc)
  @atc[atc] ||= ODDB::AtcClass.new(atc)
end

- (Object) galenic_form(galform)



59
60
61
# File 'test/test_model/sequence.rb', line 59

def galenic_form(galform)
  @galforms[galform] ||= StubSequenceGalenicForm.new
end

- (Object) sequence(key)



62
63
# File 'test/test_model/sequence.rb', line 62

def sequence(key)
end

- (Object) substance(key)



64
65
66
# File 'test/test_model/sequence.rb', line 64

def substance(key)
  @substances.first
end

- (Object) update(pointer, values)



67
68
69
# File 'test/test_model/sequence.rb', line 67

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