Class: DSP::ThreadsRequest

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface ThreadsRequest extends Request


Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

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

#argumentsObject

type: string # type: any # type: number # type: string



2641
2642
2643
# File 'lib/dsp/dsp_protocol.rb', line 2641

def arguments
  @arguments
end

#commandObject

type: string # type: any # type: number # type: string



2641
2642
2643
# File 'lib/dsp/dsp_protocol.rb', line 2641

def command
  @command
end

#seqObject

type: string # type: any # type: number # type: string



2641
2642
2643
# File 'lib/dsp/dsp_protocol.rb', line 2641

def seq
  @seq
end

#typeObject

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