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;
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: boolean # type: boolean # type: boolean # type: boolean



17
18
19
# File 'lib/lsp/lsp_custom.rb', line 17

def classesLoaded
  @classesLoaded
end

#facterVersionObject

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



17
18
19
# File 'lib/lsp/lsp_custom.rb', line 17

def facterVersion
  @facterVersion
end

#factsLoadedObject

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



17
18
19
# File 'lib/lsp/lsp_custom.rb', line 17

def factsLoaded
  @factsLoaded
end

#functionsLoadedObject

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



17
18
19
# File 'lib/lsp/lsp_custom.rb', line 17

def functionsLoaded
  @functionsLoaded
end

#languageServerVersionObject

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



17
18
19
# File 'lib/lsp/lsp_custom.rb', line 17

def languageServerVersion
  @languageServerVersion
end

#puppetVersionObject

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



17
18
19
# File 'lib/lsp/lsp_custom.rb', line 17

def puppetVersion
  @puppetVersion
end

#typesLoadedObject

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



17
18
19
# File 'lib/lsp/lsp_custom.rb', line 17

def typesLoaded
  @typesLoaded
end

Instance Method Details

#from_h!(value) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/lsp/lsp_custom.rb', line 19

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