Class: SimpleAcp::Models::RunAwaitingEvent
- Defined in:
- lib/simple_acp/models/events.rb
Overview
Run awaiting event
Instance Attribute Summary
Attributes inherited from Event
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ RunAwaitingEvent
constructor
A new instance of RunAwaitingEvent.
Methods inherited from Event
Methods inherited from Base
#==, attribute, attributes, #hash, own_attributes, #to_h, #to_json
Constructor Details
#initialize(**kwargs) ⇒ RunAwaitingEvent
Returns a new instance of RunAwaitingEvent.
119 120 121 122 |
# File 'lib/simple_acp/models/events.rb', line 119 def initialize(**kwargs) kwargs[:type] = Types::EventType::RUN_AWAITING super end |
Class Method Details
.from_hash(hash) ⇒ Object
124 125 126 127 128 129 130 131 132 |
# File 'lib/simple_acp/models/events.rb', line 124 def self.from_hash(hash) return nil if hash.nil? instance = super if hash["await_request"] || hash[:await_request] instance.await_request = AwaitRequest.from_hash(hash["await_request"] || hash[:await_request]) end instance end |