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.



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

#documentUriObject

type: string # type: number # type: string



154
155
156
# File 'lib/lsp/lsp_custom.rb', line 154

def documentUri
  @documentUri
end

#fixesAppliedObject

type: string # type: number # type: string



154
155
156
# File 'lib/lsp/lsp_custom.rb', line 154

def fixesApplied
  @fixesApplied
end

#newContentObject

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