Method: Megam::Subscriptions#from_hash
- Defined in:
- lib/megam/core/subscriptions.rb
#from_hash(o) ⇒ Object
132 133 134 135 136 137 138 139 140 |
# File 'lib/megam/core/subscriptions.rb', line 132 def from_hash(o) @id = o[:id] if o.has_key?(:id) @account_id = o[:account_id] if o.has_key?(:account_id) @model = o[:model] if o.has_key?(:model) @license = o[:license] if o.has_key?(:license) @trial_ends = o[:trial_ends] if o.has_key?(:trial_ends) @created_at = o[:created_at] if o.has_key?(:created_at) self end |