Method: Megam::Credits#to_hash
- Defined in:
- lib/megam/core/credits.rb
#to_hash ⇒ Object
Transform the ruby obj -> to a Hash
62 63 64 65 66 67 68 69 70 |
# File 'lib/megam/core/credits.rb', line 62 def to_hash index_hash = Hash.new index_hash["json_claz"] = self.class.name index_hash["id"] = id index_hash["account_id"] = account_id index_hash["credit"] = credit index_hash["created_at"] = created_at index_hash end |