Class: DSP::GotoResponse

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

Overview

interface GotoResponse extends Response


Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ GotoResponse

Returns a new instance of GotoResponse.



2159
2160
2161
2162
# File 'lib/dsp/dsp_protocol.rb', line 2159

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



2157
2158
2159
# File 'lib/dsp/dsp_protocol.rb', line 2157

def body
  @body
end

#commandObject

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



2157
2158
2159
# File 'lib/dsp/dsp_protocol.rb', line 2157

def command
  @command
end

#messageObject

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



2157
2158
2159
# File 'lib/dsp/dsp_protocol.rb', line 2157

def message
  @message
end

#request_seqObject

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



2157
2158
2159
# File 'lib/dsp/dsp_protocol.rb', line 2157

def request_seq
  @request_seq
end

#seqObject

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



2157
2158
2159
# File 'lib/dsp/dsp_protocol.rb', line 2157

def seq
  @seq
end

#successObject

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



2157
2158
2159
# File 'lib/dsp/dsp_protocol.rb', line 2157

def success
  @success
end

#typeObject

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



2157
2158
2159
# File 'lib/dsp/dsp_protocol.rb', line 2157

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
# File 'lib/dsp/dsp_protocol.rb', line 2164

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