Class: LSP::PuppetFixDiagnosticErrorsResponse
- Defined in:
- lib/lsp/lsp_custom.rb
Overview
export interface PuppetFixDiagnosticErrorsResponse
documentUri: string;
fixesApplied: number;
newContent?: string;
Instance Attribute Summary collapse
-
#documentUri ⇒ Object
type: string # type: number # type: string.
-
#fixesApplied ⇒ Object
type: string # type: number # type: string.
-
#newContent ⇒ Object
type: string # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ PuppetFixDiagnosticErrorsResponse
constructor
A new instance of PuppetFixDiagnosticErrorsResponse.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ PuppetFixDiagnosticErrorsResponse
Returns a new instance of PuppetFixDiagnosticErrorsResponse.
156 157 158 159 |
# File 'lib/lsp/lsp_custom.rb', line 156 def initialize(initial_hash = nil) super @optional_method_names = %i[newContent] end |
Instance Attribute Details
#documentUri ⇒ Object
type: string # type: number # type: string
154 155 156 |
# File 'lib/lsp/lsp_custom.rb', line 154 def documentUri @documentUri end |
#fixesApplied ⇒ Object
type: string # type: number # type: string
154 155 156 |
# File 'lib/lsp/lsp_custom.rb', line 154 def fixesApplied @fixesApplied end |
#newContent ⇒ Object
type: string # type: number # type: string
154 155 156 |
# File 'lib/lsp/lsp_custom.rb', line 154 def newContent @newContent end |
Instance Method Details
#from_h!(value) ⇒ Object
161 162 163 164 165 166 167 |
# File 'lib/lsp/lsp_custom.rb', line 161 def from_h!(value) value = {} if value.nil? self.documentUri = value['documentUri'] self.fixesApplied = value['fixesApplied'] self.newContent = value['newContent'] self end |