Class: DSP::StepInTargetsResponse

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

Overview

interface StepInTargetsResponse extends Response {

    body: {
        /** The possible stepIn targets of the specified source location. */
        targets: StepInTarget[];
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ StepInTargetsResponse

Returns a new instance of StepInTargetsResponse.



3175
3176
3177
3178
# File 'lib/dsp/dsp_protocol.rb', line 3175

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

Instance Attribute Details

#bodyObject

type: {



3169
3170
3171
# File 'lib/dsp/dsp_protocol.rb', line 3169

def body
  @body
end

#commandObject

type: {



3169
3170
3171
# File 'lib/dsp/dsp_protocol.rb', line 3169

def command
  @command
end

#messageObject

type: {



3169
3170
3171
# File 'lib/dsp/dsp_protocol.rb', line 3169

def message
  @message
end

#request_seqObject

/** The possible stepIn targets of the specified source location. */

    targets: StepInTarget[];
}


3173
3174
3175
# File 'lib/dsp/dsp_protocol.rb', line 3173

def request_seq
  @request_seq
end

#seqObject

type: {



3169
3170
3171
# File 'lib/dsp/dsp_protocol.rb', line 3169

def seq
  @seq
end

#successObject

type: {



3169
3170
3171
# File 'lib/dsp/dsp_protocol.rb', line 3169

def success
  @success
end

#typeObject

type: {



3169
3170
3171
# File 'lib/dsp/dsp_protocol.rb', line 3169

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
# File 'lib/dsp/dsp_protocol.rb', line 3180

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