Class: LSP::CompileNodeGraphResponse
- Defined in:
- lib/lsp/lsp_custom.rb
Overview
export interface CompileNodeGraphResponse
dotContent: string;
data: string;
Instance Attribute Summary collapse
-
#dotContent ⇒ Object
type: string # type: string.
-
#error ⇒ Object
type: string # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CompileNodeGraphResponse
constructor
A new instance of CompileNodeGraphResponse.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ CompileNodeGraphResponse
Returns a new instance of CompileNodeGraphResponse.
120 121 122 123 |
# File 'lib/lsp/lsp_custom.rb', line 120 def initialize(initial_hash = nil) super @optional_method_names = %i[error] end |
Instance Attribute Details
#dotContent ⇒ Object
type: string # type: string
118 119 120 |
# File 'lib/lsp/lsp_custom.rb', line 118 def dotContent @dotContent end |
#error ⇒ Object
type: string # type: string
118 119 120 |
# File 'lib/lsp/lsp_custom.rb', line 118 def error @error end |
Instance Method Details
#from_h!(value) ⇒ Object
125 126 127 128 129 130 |
# File 'lib/lsp/lsp_custom.rb', line 125 def from_h!(value) value = {} if value.nil? self.dotContent = value['dotContent'] self.error = value['error'] self end |