Class: PuppetLanguageServer::Sidecar::Protocol::PuppetFunctionSignatureParameter

Inherits:
BaseClass
  • Object
show all
Defined in:
lib/puppet-languageserver/sidecar_protocol.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseClass

#==, #eql?, #from_json!, #hash, #to_json

Methods included from Base

#from_json!, #to_json

Instance Attribute Details

#docObject

Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key



322
323
324
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322

def doc
  @doc
end

#nameObject

Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key



322
323
324
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322

def name
  @name
end

#signature_key_lengthObject

Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key



322
323
324
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322

def signature_key_length
  @signature_key_length
end

#signature_key_offsetObject

Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key



322
323
324
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322

def signature_key_offset
  @signature_key_offset
end

#typesObject

Zero based offset where this parameter exists in the signature key # The length of text where this parameter exists in the signature key



322
323
324
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 322

def types
  @types
end

Instance Method Details

#from_h!(value) ⇒ Object



334
335
336
337
338
339
340
341
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 334

def from_h!(value)
  self.name = value['name']
  self.doc = value['doc']
  self.types = value['types']
  self.signature_key_offset = value['signature_key_offset']
  self.signature_key_length = value['signature_key_length']
  self
end

#to_hObject



324
325
326
327
328
329
330
331
332
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 324

def to_h
  {
    'name' => name,
    'doc' => doc,
    'types' => types,
    'signature_key_offset' => signature_key_offset,
    'signature_key_length' => signature_key_length
  }
end