Class: LSP::PuppetNodeGraphResponse
- Defined in:
- lib/lsp/lsp_custom.rb
Overview
export interface PuppetNodeGraphResponse
dotContent: string;
data: string;
Instance Attribute Summary collapse
-
#edges ⇒ Object
type: string # type: string # type: string.
-
#error ⇒ Object
type: string # type: string # type: string.
-
#vertices ⇒ Object
type: string # type: string # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ PuppetNodeGraphResponse
constructor
A new instance of PuppetNodeGraphResponse.
Methods inherited from LSPBase
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
#edges ⇒ Object
type: string # type: string # type: string
77 78 79 |
# File 'lib/lsp/lsp_custom.rb', line 77 def edges @edges end |
#error ⇒ Object
type: string # type: string # type: string
77 78 79 |
# File 'lib/lsp/lsp_custom.rb', line 77 def error @error end |
#vertices ⇒ Object
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 |