Class: DSP::AttachResponse

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

Overview

interface AttachResponse extends Response


Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ AttachResponse

Returns a new instance of AttachResponse.



1094
1095
1096
1097
# File 'lib/dsp/dsp_protocol.rb', line 1094

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[message body]
end

Instance Attribute Details

#bodyObject

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



1092
1093
1094
# File 'lib/dsp/dsp_protocol.rb', line 1092

def body
  @body
end

#commandObject

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



1092
1093
1094
# File 'lib/dsp/dsp_protocol.rb', line 1092

def command
  @command
end

#messageObject

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



1092
1093
1094
# File 'lib/dsp/dsp_protocol.rb', line 1092

def message
  @message
end

#request_seqObject

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



1092
1093
1094
# File 'lib/dsp/dsp_protocol.rb', line 1092

def request_seq
  @request_seq
end

#seqObject

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



1092
1093
1094
# File 'lib/dsp/dsp_protocol.rb', line 1092

def seq
  @seq
end

#successObject

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



1092
1093
1094
# File 'lib/dsp/dsp_protocol.rb', line 1092

def success
  @success
end

#typeObject

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



1092
1093
1094
# File 'lib/dsp/dsp_protocol.rb', line 1092

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
# File 'lib/dsp/dsp_protocol.rb', line 1099

def from_h!(value)
  value = {} if value.nil?
  self.request_seq = value['request_seq']
  self.success = value['success'] # Unknown type
  self.command = value['command']
  self.message = value['message']
  self.body = value['body']
  self.seq = value['seq']
  self.type = value['type']
  self
end