Class: LSP::PuppetNodeGraphResponse

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

Overview

export interface PuppetNodeGraphResponse

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) ⇒ PuppetNodeGraphResponse

Returns a new instance of PuppetNodeGraphResponse.



79
80
81
82
# File 'lib/lsp/lsp_custom.rb', line 79

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

Instance Attribute Details

#edgesObject

type: string # type: string # type: string



77
78
79
# File 'lib/lsp/lsp_custom.rb', line 77

def edges
  @edges
end

#errorObject

type: string # type: string # type: string



77
78
79
# File 'lib/lsp/lsp_custom.rb', line 77

def error
  @error
end

#verticesObject

type: string # type: string # type: string



77
78
79
# File 'lib/lsp/lsp_custom.rb', line 77

def vertices
  @vertices
end

Instance Method Details

#from_h!(value) ⇒ Object



84
85
86
87
88
89
90
# File 'lib/lsp/lsp_custom.rb', line 84

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