Class: DSP::InitializedEvent
Overview
interface InitializedEvent extends Event
Instance Attribute Summary collapse
-
#body ⇒ Object
type: string # type: any # type: number # type: string.
-
#event ⇒ Object
type: string # type: any # type: number # type: string.
-
#seq ⇒ Object
type: string # type: any # type: number # type: string.
-
#type ⇒ Object
type: string # type: any # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ InitializedEvent
constructor
A new instance of InitializedEvent.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ InitializedEvent
Returns a new instance of InitializedEvent.
227 228 229 230 |
# File 'lib/dsp/dsp_protocol.rb', line 227 def initialize(initial_hash = nil) super @optional_method_names = i[body] end |
Instance Attribute Details
#body ⇒ Object
type: string # type: any # type: number # type: string
225 226 227 |
# File 'lib/dsp/dsp_protocol.rb', line 225 def body @body end |
#event ⇒ Object
type: string # type: any # type: number # type: string
225 226 227 |
# File 'lib/dsp/dsp_protocol.rb', line 225 def event @event end |
#seq ⇒ Object
type: string # type: any # type: number # type: string
225 226 227 |
# File 'lib/dsp/dsp_protocol.rb', line 225 def seq @seq end |
#type ⇒ Object
type: string # type: any # type: number # type: string
225 226 227 |
# File 'lib/dsp/dsp_protocol.rb', line 225 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
232 233 234 235 236 237 238 239 |
# File 'lib/dsp/dsp_protocol.rb', line 232 def from_h!(value) value = {} if value.nil? self.event = value['event'] self.body = value['body'] self.seq = value['seq'] self.type = value['type'] self end |