Exception: PuppetDB::APIError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- PuppetDB::APIError
- Defined in:
- lib/puppetdb/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ APIError
constructor
A new instance of APIError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/puppetdb/client.rb', line 6 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/puppetdb/client.rb', line 6 def response @response end |