Method: Megam::Billingtransactions#to_hash
- Defined in:
- lib/megam/core/billingtransactions.rb
#to_hash ⇒ Object
Transform the ruby obj -> to a Hash
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/megam/core/billingtransactions.rb', line 115 def to_hash index_hash = Hash.new index_hash["json_claz"] = self.class.name index_hash["id"] = id index_hash["accounts_id"] = accounts_id index_hash["gateway"] = gateway index_hash["amountin"] = amountin index_hash["amountout"] = amountout index_hash["fees"] = fees index_hash["tranid"] = tranid index_hash["trandate"] = trandate index_hash["currency_type"] = currency_type index_hash["created_at"] = created_at index_hash end |