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