Class: InterMine::Metadata::FieldDescriptor
- Inherits:
-
Object
- Object
- InterMine::Metadata::FieldDescriptor
- Includes:
- SetHashKey
- Defined in:
- lib/intermine/model.rb
Overview
A representation of a database column. The characteristics of these classes are defined by the model information received from the webservice
Direct Known Subclasses
Instance Attribute Summary collapse
-
#model ⇒ Object
The data model this field descriptor belongs to.
Instance Method Summary collapse
-
#initialize(opts, model) ⇒ FieldDescriptor
constructor
Constructor.
Methods included from SetHashKey
Constructor Details
#initialize(opts, model) ⇒ FieldDescriptor
Constructor.
opts
-
The hash of parameters received from the webservice
model
-
The parental data model
667 668 669 670 671 672 |
# File 'lib/intermine/model.rb', line 667 def initialize(opts, model) @model = model opts.each do |k, v| set_key_value(k, v) end end |
Instance Attribute Details
#model ⇒ Object
The data model this field descriptor belongs to.
660 661 662 |
# File 'lib/intermine/model.rb', line 660 def model @model end |