Class: LSP::PuppetResourceResponse
- Defined in:
- lib/lsp/lsp_custom.rb
Overview
export interface GetPuppetResourceResponse
data: string;
error: string;
Instance Attribute Summary collapse
-
#data ⇒ Object
type: string # type: string.
-
#error ⇒ Object
type: string # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ PuppetResourceResponse
constructor
A new instance of PuppetResourceResponse.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ PuppetResourceResponse
Returns a new instance of PuppetResourceResponse.
59 60 61 62 |
# File 'lib/lsp/lsp_custom.rb', line 59 def initialize(initial_hash = nil) super @optional_method_names = i[error] end |
Instance Attribute Details
#data ⇒ Object
type: string # type: string
57 58 59 |
# File 'lib/lsp/lsp_custom.rb', line 57 def data @data end |
#error ⇒ Object
type: string # type: string
57 58 59 |
# File 'lib/lsp/lsp_custom.rb', line 57 def error @error end |
Instance Method Details
#from_h!(value) ⇒ Object
64 65 66 67 68 69 |
# File 'lib/lsp/lsp_custom.rb', line 64 def from_h!(value) value = {} if value.nil? self.data = value['data'] self.error = value['error'] self end |