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.



108
109
110
111
# File 'lib/lsp/lsp_custom.rb', line 108

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

Instance Attribute Details

#dependenciesObject

type: string # type: string



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

def dependencies
  @dependencies
end

#errorObject

type: string # type: string



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

def error
  @error
end

Instance Method Details

#from_h!(value) ⇒ Object



113
114
115
116
117
118
# File 'lib/lsp/lsp_custom.rb', line 113

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