Class: RestApi::Base::AttributeHash
- Inherits:
-
Hash
- Object
- Hash
- RestApi::Base::AttributeHash
- Defined in:
- app/models/rest_api/base.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ AttributeHash
constructor
A new instance of AttributeHash.
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 |