Module: API

Defined in:
lib/puppet/functions/api.rb

Defined Under Namespace

Classes: Account, Accounts, Error, Init

Constant Summary collapse

POST =

HTTP methods

'POST'
GET =
'GET'
PUT =
'PUT'
DELETE =
'DELETE'
AUTHTOKEN =

API constants

'authtoken'
ORG =
'org'
ERROR =

Log levels

'err'
INFO =
'info'
WARN =
'warning'
DEBUG =
'debug'

Class Attribute Summary collapse

Class Attribute Details

.authtokenObject

Returns the value of attribute authtoken.



29
30
31
# File 'lib/puppet/functions/api.rb', line 29

def authtoken
  @authtoken
end

.certificateObject

Returns the value of attribute certificate.



29
30
31
# File 'lib/puppet/functions/api.rb', line 29

def certificate
  @certificate
end

.orgObject

Returns the value of attribute org.



29
30
31
# File 'lib/puppet/functions/api.rb', line 29

def org
  @org
end

.server_urlObject

Returns the value of attribute server_url.



29
30
31
# File 'lib/puppet/functions/api.rb', line 29

def server_url
  @server_url
end