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



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

#modelObject

The data model this field descriptor belongs to.



637
638
639
# File 'lib/intermine/model.rb', line 637

def model
  @model
end