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
644 645 646 647 648 649 |
# File 'lib/intermine/model.rb', line 644 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.
637 638 639 |
# File 'lib/intermine/model.rb', line 637 def model @model end |