Exception: Hieracles::Puppetdb::APIError

Inherits:
Exception
  • Object
show all
Defined in:
lib/hieracles/puppetdb/apierror.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/hieracles/puppetdb/apierror.rb', line 4

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



4
5
6
# File 'lib/hieracles/puppetdb/apierror.rb', line 4

def response
  @response
end