Class: InterMine::Metadata::FieldDescriptor

Inherits:
Object
  • Object
show all
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

AttributeDescriptor, ReferenceDescriptor

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SetHashKey

#inspect, #set_key_value

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

#modelObject

The data model this field descriptor belongs to.


660
661
662
# File 'lib/intermine/model.rb', line 660

def model
  @model
end