Method: Megam::Subscriptions#to_hash
- Defined in:
- lib/megam/core/subscriptions.rb
#to_hash ⇒ Object
Transform the ruby obj -> to a Hash
79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/megam/core/subscriptions.rb', line 79 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["model"] = model index_hash["license"] = license index_hash["trial_ends"] = trial_ends index_hash["created_at"] = created_at index_hash end |