Method: InterMine::Metadata::InterMineObject#initialize

Defined in:
lib/intermine/model.rb

#initialize(hash = nil) ⇒ InterMineObject

Arguments:

hash

The properties of this object represented as a Hash. Nested Arrays and Hashes are expected for collections and references.



171
172
173
174
175
176
177
178
# File 'lib/intermine/model.rb', line 171

def initialize(hash=nil)
    hash ||= {}
    hash.each do |key, value|
        if key.to_s != "class"
            self.send(key.to_s + "=", value)
        end
    end
end