Method: Megam::Subscriptions#to_hash
- Defined in:
- lib/megam/core/subscriptions.rb
#to_hash ⇒ Object
Transform the ruby obj -> to a Hash
96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/megam/core/subscriptions.rb', line 96 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["assembly_id"] = assembly_id index_hash["start_date"] = start_date index_hash["end_date"] = end_date index_hash["created_at"] = created_at index_hash["some_msg"] = some_msg index_hash end |