Class: DSP::SourceResponse
Overview
interface SourceResponse extends Response {
body: {
/** Content of the source reference. */
content: string;
/** Optional content type (mime type) of the source. */
mimeType?: string;
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#command ⇒ Object
type: {.
-
#message ⇒ Object
type: {.
-
#request_seq ⇒ Object
/** Content of the source reference.
-
#seq ⇒ Object
type: {.
-
#success ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SourceResponse
constructor
A new instance of SourceResponse.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ SourceResponse
Returns a new instance of SourceResponse.
2620 2621 2622 2623 |
# File 'lib/dsp/dsp_protocol.rb', line 2620 def initialize(initial_hash = nil) super @optional_method_names = i[] end |
Instance Attribute Details
#body ⇒ Object
type: {
2612 2613 2614 |
# File 'lib/dsp/dsp_protocol.rb', line 2612 def body @body end |
#command ⇒ Object
type: {
2612 2613 2614 |
# File 'lib/dsp/dsp_protocol.rb', line 2612 def command @command end |
#message ⇒ Object
type: {
2612 2613 2614 |
# File 'lib/dsp/dsp_protocol.rb', line 2612 def end |
#request_seq ⇒ Object
/** Content of the source reference. */
content: string;
/** Optional content type (mime type) of the source. */
mimeType?: string;
}
2618 2619 2620 |
# File 'lib/dsp/dsp_protocol.rb', line 2618 def request_seq @request_seq end |
#seq ⇒ Object
type: {
2612 2613 2614 |
# File 'lib/dsp/dsp_protocol.rb', line 2612 def seq @seq end |
#success ⇒ Object
type: {
2612 2613 2614 |
# File 'lib/dsp/dsp_protocol.rb', line 2612 def success @success end |
#type ⇒ Object
type: {
2612 2613 2614 |
# File 'lib/dsp/dsp_protocol.rb', line 2612 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 |
# File 'lib/dsp/dsp_protocol.rb', line 2625 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 |