Class: DSP::AttachRequest

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

Overview

interface AttachRequest extends Request {

    arguments: AttachRequestArguments;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from DSP::DSPBase

Instance Attribute Details

#argumentsObject

type: AttachRequestArguments # type: string # type: number # type: string



1055
1056
1057
# File 'lib/dsp/dsp_protocol.rb', line 1055

def arguments
  @arguments
end

#commandObject

type: AttachRequestArguments # type: string # type: number # type: string



1055
1056
1057
# File 'lib/dsp/dsp_protocol.rb', line 1055

def command
  @command
end

#seqObject

type: AttachRequestArguments # type: string # type: number # type: string



1055
1056
1057
# File 'lib/dsp/dsp_protocol.rb', line 1055

def seq
  @seq
end

#typeObject

type: AttachRequestArguments # type: string # type: number # type: string



1055
1056
1057
# File 'lib/dsp/dsp_protocol.rb', line 1055

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



1057
1058
1059
1060
1061
1062
1063
1064
# File 'lib/dsp/dsp_protocol.rb', line 1057

def from_h!(value)
  value = {} if value.nil?
  self.arguments = AttachRequestArguments.new(value['arguments']) unless value['arguments'].nil?
  self.command = value['command']
  self.seq = value['seq']
  self.type = value['type']
  self
end