Class: LSP::PuppetVersion

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

Overview

export interface PuppetVersionDetails { puppetVersion: string; facterVersion: string; languageServerVersion: string; runtimeName: string; runtimeGemVersion: string; factRuntimeName: string; factRuntimeGemVersion: string; factsLoaded: boolean; functionsLoaded: boolean; typesLoaded: boolean; classesLoaded: boolean; }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#classesLoadedObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def classesLoaded
  @classesLoaded
end

#facterVersionObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def facterVersion
  @facterVersion
end

#factRuntimeGemVersionObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def factRuntimeGemVersion
  @factRuntimeGemVersion
end

#factRuntimeNameObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def factRuntimeName
  @factRuntimeName
end

#factsLoadedObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def factsLoaded
  @factsLoaded
end

#functionsLoadedObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def functionsLoaded
  @functionsLoaded
end

#languageServerVersionObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def languageServerVersion
  @languageServerVersion
end

#puppetVersionObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def puppetVersion
  @puppetVersion
end

#runtimeGemVersionObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def runtimeGemVersion
  @runtimeGemVersion
end

#runtimeNameObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def runtimeName
  @runtimeName
end

#typesLoadedObject

type: string # type: string # type: string # type: string # type: string # type: string # type: string # type: boolean # type: boolean # type: boolean # type: boolean



21
22
23
# File 'lib/lsp/lsp_custom.rb', line 21

def typesLoaded
  @typesLoaded
end

Instance Method Details

#from_h!(value) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/lsp/lsp_custom.rb', line 23

def from_h!(value)
  value = {} if value.nil?
  self.puppetVersion = value['puppetVersion']
  self.facterVersion = value['facterVersion']
  self.languageServerVersion = value['languageServerVersion']
  self.runtimeName = value['runtimeName']
  self.runtimeGemVersion = value['runtimeGemVersion']
  self.factRuntimeName = value['factRuntimeName']
  self.factRuntimeGemVersion = value['factRuntimeGemVersion']
  self.factsLoaded = value['factsLoaded']
  self.functionsLoaded = value['functionsLoaded']
  self.typesLoaded = value['typesLoaded']
  self.classesLoaded = value['classesLoaded']
  self
end