Method: Megam::Request#to_hash
- Defined in:
- lib/megam/core/request.rb
#to_hash ⇒ Object
Transform the ruby obj -> to a Hash
99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/megam/core/request.rb', line 99 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["cat_id"] = cat_id index_hash["name"] = name index_hash["cattype"] = cattype index_hash["action"] = action index_hash["category"] = category index_hash["created_at"] = created_at index_hash end |