Class: DSP::ThreadsRequest
Overview
interface ThreadsRequest extends Request
Instance Attribute Summary collapse
-
#arguments ⇒ Object
type: string # type: any # type: number # type: string.
-
#command ⇒ 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) ⇒ ThreadsRequest
constructor
A new instance of ThreadsRequest.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ ThreadsRequest
Returns a new instance of ThreadsRequest.
2643 2644 2645 2646 |
# File 'lib/dsp/dsp_protocol.rb', line 2643 def initialize(initial_hash = nil) super @optional_method_names = %i[arguments] end |
Instance Attribute Details
#arguments ⇒ Object
type: string # type: any # type: number # type: string
2641 2642 2643 |
# File 'lib/dsp/dsp_protocol.rb', line 2641 def arguments @arguments end |
#command ⇒ Object
type: string # type: any # type: number # type: string
2641 2642 2643 |
# File 'lib/dsp/dsp_protocol.rb', line 2641 def command @command end |
#seq ⇒ Object
type: string # type: any # type: number # type: string
2641 2642 2643 |
# File 'lib/dsp/dsp_protocol.rb', line 2641 def seq @seq end |
#type ⇒ Object
type: string # type: any # type: number # type: string
2641 2642 2643 |
# File 'lib/dsp/dsp_protocol.rb', line 2641 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
2648 2649 2650 2651 2652 2653 2654 2655 |
# File 'lib/dsp/dsp_protocol.rb', line 2648 def from_h!(value) value = {} if value.nil? self.command = value['command'] self.arguments = value['arguments'] self.seq = value['seq'] self.type = value['type'] self end |