Class: DSP::RunInTerminalResponse
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface RunInTerminalResponse extends Response {
body: {
/** The process ID. The value should be less than or equal to 2147483647 (2^31 - 1). */
processId?: number;
/** The process ID of the terminal shell. The value should be less than or equal to 2147483647 (2^31 - 1). */
shellProcessId?: number;
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#command ⇒ Object
type: {.
-
#message ⇒ Object
type: {.
-
#request_seq ⇒ Object
/** The process ID.
-
#seq ⇒ Object
type: {.
-
#success ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ RunInTerminalResponse
constructor
A new instance of RunInTerminalResponse.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ RunInTerminalResponse
Returns a new instance of RunInTerminalResponse.
820 821 822 823 |
# File 'lib/dsp/dsp_protocol.rb', line 820 def initialize(initial_hash = nil) super @optional_method_names = %i[message] end |
Instance Attribute Details
#body ⇒ Object
type: {
812 813 814 |
# File 'lib/dsp/dsp_protocol.rb', line 812 def body @body end |
#command ⇒ Object
type: {
812 813 814 |
# File 'lib/dsp/dsp_protocol.rb', line 812 def command @command end |
#message ⇒ Object
type: {
812 813 814 |
# File 'lib/dsp/dsp_protocol.rb', line 812 def @message end |
#request_seq ⇒ Object
/** The process ID. The value should be less than or equal to 2147483647 (2^31 - 1). */
processId?: number;
/** The process ID of the terminal shell. The value should be less than or equal to 2147483647 (2^31 - 1). */
shellProcessId?: number;
}
818 819 820 |
# File 'lib/dsp/dsp_protocol.rb', line 818 def request_seq @request_seq end |
#seq ⇒ Object
type: {
812 813 814 |
# File 'lib/dsp/dsp_protocol.rb', line 812 def seq @seq end |
#success ⇒ Object
type: {
812 813 814 |
# File 'lib/dsp/dsp_protocol.rb', line 812 def success @success end |
#type ⇒ Object
type: {
812 813 814 |
# File 'lib/dsp/dsp_protocol.rb', line 812 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
825 826 827 828 829 830 831 832 833 834 835 |
# File 'lib/dsp/dsp_protocol.rb', line 825 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 |