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.



128
129
130
131
# File 'lib/lsp/lsp_custom.rb', line 128

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[error]
end

Instance Attribute Details

#dotContentObject

type: string # type: string



126
127
128
# File 'lib/lsp/lsp_custom.rb', line 126

def dotContent
  @dotContent
end

#errorObject

type: string # type: string



126
127
128
# File 'lib/lsp/lsp_custom.rb', line 126

def error
  @error
end

Instance Method Details

#from_h!(value) ⇒ Object



133
134
135
136
137
138
# File 'lib/lsp/lsp_custom.rb', line 133

def from_h!(value)
  value = {} if value.nil?
  self.dotContent = value['dotContent']
  self.error = value['error']
  self
end