Class: DSP::GotoTargetsResponse
- 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
-
#body ⇒ Object
type: {.
-
#command ⇒ Object
type: {.
-
#message ⇒ Object
type: {.
-
#request_seq ⇒ Object
/** The possible goto targets of the specified location.
-
#seq ⇒ Object
type: {.
-
#success ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ GotoTargetsResponse
constructor
A new instance of GotoTargetsResponse.
Methods inherited from DSPBase
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
#body ⇒ Object
type: {
3241 3242 3243 |
# File 'lib/dsp/dsp_protocol.rb', line 3241 def body @body end |
#command ⇒ Object
type: {
3241 3242 3243 |
# File 'lib/dsp/dsp_protocol.rb', line 3241 def command @command end |
#message ⇒ Object
type: {
3241 3242 3243 |
# File 'lib/dsp/dsp_protocol.rb', line 3241 def @message end |
#request_seq ⇒ Object
/** 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 |
#seq ⇒ Object
type: {
3241 3242 3243 |
# File 'lib/dsp/dsp_protocol.rb', line 3241 def seq @seq end |
#success ⇒ Object
type: {
3241 3242 3243 |
# File 'lib/dsp/dsp_protocol.rb', line 3241 def success @success end |
#type ⇒ Object
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. = value['message'] self.seq = value['seq'] self.type = value['type'] self end |