Class: DSP::InitializeResponse
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface InitializeResponse extends Response {
/** The capabilities of this debug adapter. */
body?: Capabilities;
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string.
-
#command ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string.
-
#message ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string.
-
#request_seq ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string.
-
#seq ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string.
-
#success ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string.
-
#type ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ InitializeResponse
constructor
A new instance of InitializeResponse.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ InitializeResponse
Returns a new instance of InitializeResponse.
915 916 917 918 |
# File 'lib/dsp/dsp_protocol.rb', line 915 def initialize(initial_hash = nil) super @optional_method_names = %i[body message] end |
Instance Attribute Details
#body ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string
913 914 915 |
# File 'lib/dsp/dsp_protocol.rb', line 913 def body @body end |
#command ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string
913 914 915 |
# File 'lib/dsp/dsp_protocol.rb', line 913 def command @command end |
#message ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string
913 914 915 |
# File 'lib/dsp/dsp_protocol.rb', line 913 def @message end |
#request_seq ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string
913 914 915 |
# File 'lib/dsp/dsp_protocol.rb', line 913 def request_seq @request_seq end |
#seq ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string
913 914 915 |
# File 'lib/dsp/dsp_protocol.rb', line 913 def seq @seq end |
#success ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string
913 914 915 |
# File 'lib/dsp/dsp_protocol.rb', line 913 def success @success end |
#type ⇒ Object
type: Capabilities # type: number # type: boolean # type: string # type: string # type: number # type: string
913 914 915 |
# File 'lib/dsp/dsp_protocol.rb', line 913 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
920 921 922 923 924 925 926 927 928 929 930 |
# File 'lib/dsp/dsp_protocol.rb', line 920 def from_h!(value) value = {} if value.nil? self.body = Capabilities.new(value['body']) unless value['body'].nil? 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 |