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.



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

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

Instance Attribute Details

#edgesObject

type: string # type: string # type: string



85
86
87
# File 'lib/lsp/lsp_custom.rb', line 85

def edges
  @edges
end

#errorObject

type: string # type: string # type: string



85
86
87
# File 'lib/lsp/lsp_custom.rb', line 85

def error
  @error
end

#verticesObject

type: string # type: string # type: string



85
86
87
# File 'lib/lsp/lsp_custom.rb', line 85

def vertices
  @vertices
end

Instance Method Details

#from_h!(value) ⇒ Object



92
93
94
95
96
97
98
# File 'lib/lsp/lsp_custom.rb', line 92

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