Exception: PuppetDB::APIError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/puppetdb/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ APIError

Returns a new instance of APIError.



7
8
9
# File 'lib/puppetdb/client.rb', line 7

def initialize(response)
  @response = response
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/puppetdb/client.rb', line 6

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/puppetdb/client.rb', line 6

def response
  @response
end