Class: LSP::PuppetFixDiagnosticErrorsResponse

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_custom.rb

Overview

export interface PuppetFixDiagnosticErrorsResponse { documentUri: string; fixesApplied: number; newContent?: string; }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#documentUriObject

type: string # type: number # type: string



162
163
164
# File 'lib/lsp/lsp_custom.rb', line 162

def documentUri
  @documentUri
end

#fixesAppliedObject

type: string # type: number # type: string



162
163
164
# File 'lib/lsp/lsp_custom.rb', line 162

def fixesApplied
  @fixesApplied
end

#newContentObject

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