Class: ODDB::TestGalenicForm::StubSequence

Inherits:
Object
  • Object
show all
Includes:
Persistence
Defined in:
test/test_model/galenicform.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

- (StubSequence) initialize

A new instance of StubSequence



43
44
45
# File 'test/test_model/galenicform.rb', line 43

def initialize
  @compositions = []
end

Instance Attribute Details

- (Object) compositions (readonly)

Returns the value of attribute compositions



41
42
43
# File 'test/test_model/galenicform.rb', line 41

def compositions
  @compositions
end

Instance Method Details

- (Object) galenic_form=(galform)



46
47
48
49
50
51
52
# File 'test/test_model/galenicform.rb', line 46

def galenic_form=(galform)
  if(@galform.respond_to?(:remove_sequence))
    @galform.remove_sequence(self)
  end
  galform.add_sequence(self)
  @galform = galform
end