Method: Megam::EventsVm#from_hash
- Defined in:
- lib/megam/core/eventsvm.rb
#from_hash(o) ⇒ Object
145 146 147 148 149 150 151 152 153 154 |
# File 'lib/megam/core/eventsvm.rb', line 145 def from_hash(o) @account_id = o[:account_id] if o.has_key?(:account_id) @assembly_id = o[:assembly_id] if o.has_key?(:assembly_id) @event_type = o[:event_type] if o.has_key?(:event_type) @data = o[:data] if o.has_key?(:data) @limit = o[:limit] if o.has_key?(:limit) @created_at = o[:created_at] if o.has_key?(:created_at) @id = o[:id] if o.has_key?(:id) self end |