Class: TestOddbApp::StubGalenicForm

Inherits:
Object
  • Object
show all
Includes:
ODDB::Language
Defined in:
test/test_util/oddbapp.rb

Constant Summary

Constants included from ODDB::Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from ODDB::Language

#all_descriptions, #has_description?, #init, #synonyms, #synonyms=

Methods included from ODDB::SimpleLanguage

#description, #descriptions, #has_description?, #match, #method_missing, #respond_to?, #search_text, #to_s, #update_values

Methods included from ODDB::PersistenceMethods

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

Constructor Details

- (StubGalenicForm) initialize(name)

A new instance of StubGalenicForm



131
132
133
134
# File 'test/test_util/oddbapp.rb', line 131

def initialize(name)
  self.update_values({ 'de' => name })
  @name = name
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ODDB::SimpleLanguage

Instance Attribute Details

- (Object) name (readonly)

Returns the value of attribute name



130
131
132
# File 'test/test_util/oddbapp.rb', line 130

def name
  @name
end