Class: RestApi::Base::AttributeHash

Inherits:
Hash
  • Object
show all
Defined in:
app/models/rest_api/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ AttributeHash

Returns a new instance of AttributeHash.



449
450
451
# File 'app/models/rest_api/base.rb', line 449

def initialize(hash)
  hash.each_pair{ |k,v| self[k] = v }
end