Exception: Hieracles::Puppetdb::APIError
- Inherits:
-
Exception
- Object
- Exception
- Hieracles::Puppetdb::APIError
- Defined in:
- lib/hieracles/puppetdb/apierror.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.
5 6 7 |
# File 'lib/hieracles/puppetdb/apierror.rb', line 5 def initialize(response) @response = response end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/hieracles/puppetdb/apierror.rb', line 4 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/hieracles/puppetdb/apierror.rb', line 4 def response @response end |