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.
164 165 166 167 |
# File 'lib/lsp/lsp_custom.rb', line 164 def initialize(initial_hash = nil) super @optional_method_names = %i[newContent] end |
Instance Attribute Details
#documentUri ⇒ Object
type: string # type: number # type: string
162 163 164 |
# File 'lib/lsp/lsp_custom.rb', line 162 def documentUri @documentUri end |
#fixesApplied ⇒ Object
type: string # type: number # type: string
162 163 164 |
# File 'lib/lsp/lsp_custom.rb', line 162 def fixesApplied @fixesApplied end |
#newContent ⇒ Object
type: string # type: number # type: string
162 163 164 |
# File 'lib/lsp/lsp_custom.rb', line 162 def newContent @newContent end |
Instance Method Details
#from_h!(value) ⇒ Object
169 170 171 172 173 174 175 |
# File 'lib/lsp/lsp_custom.rb', line 169 def from_h!(value) value = {} if value.nil? self.documentUri = value['documentUri'] self.fixesApplied = value['fixesApplied'] self.newContent = value['newContent'] self end |