Class: LSP::PuppetfileDependencyResponse

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

Overview

export interface PuppetfileDependencyResponse

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

Returns a new instance of PuppetfileDependencyResponse.



100
101
102
103
# File 'lib/lsp/lsp_custom.rb', line 100

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

Instance Attribute Details

#dependenciesObject

type: string[] # type: string



98
99
100
# File 'lib/lsp/lsp_custom.rb', line 98

def dependencies
  @dependencies
end

#errorObject

type: string[] # type: string



98
99
100
# File 'lib/lsp/lsp_custom.rb', line 98

def error
  @error
end

Instance Method Details

#from_h!(value) ⇒ Object



105
106
107
108
109
110
# File 'lib/lsp/lsp_custom.rb', line 105

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