Class: DSP::GotoTargetsResponse

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

Overview

interface GotoTargetsResponse extends Response {

    body: {
        /** The possible goto targets of the specified location. */
        targets: GotoTarget[];
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ GotoTargetsResponse

Returns a new instance of GotoTargetsResponse.



3247
3248
3249
3250
# File 'lib/dsp/dsp_protocol.rb', line 3247

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

Instance Attribute Details

#bodyObject

type: {



3241
3242
3243
# File 'lib/dsp/dsp_protocol.rb', line 3241

def body
  @body
end

#commandObject

type: {



3241
3242
3243
# File 'lib/dsp/dsp_protocol.rb', line 3241

def command
  @command
end

#messageObject

type: {



3241
3242
3243
# File 'lib/dsp/dsp_protocol.rb', line 3241

def message
  @message
end

#request_seqObject

/** The possible goto targets of the specified location. */

    targets: GotoTarget[];
}


3245
3246
3247
# File 'lib/dsp/dsp_protocol.rb', line 3245

def request_seq
  @request_seq
end

#seqObject

type: {



3241
3242
3243
# File 'lib/dsp/dsp_protocol.rb', line 3241

def seq
  @seq
end

#successObject

type: {



3241
3242
3243
# File 'lib/dsp/dsp_protocol.rb', line 3241

def success
  @success
end

#typeObject

type: {



3241
3242
3243
# File 'lib/dsp/dsp_protocol.rb', line 3241

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
# File 'lib/dsp/dsp_protocol.rb', line 3252

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