Class: LSP::CompileNodeGraphResponse

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_custom.rb

Overview

export interface CompileNodeGraphResponse

dotContent: string;
data: string;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#dotContentObject

type: string # type: string



118
119
120
# File 'lib/lsp/lsp_custom.rb', line 118

def dotContent
  @dotContent
end

#errorObject

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