Exception: Koine::RestClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Koine::RestClient::Error
- Defined in:
- lib/koine/rest_client/errors.rb
Overview
base class for http errors
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
11 12 13 |
# File 'lib/koine/rest_client/errors.rb', line 11 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/koine/rest_client/errors.rb', line 9 def response @response end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/koine/rest_client/errors.rb', line 15 def @message ||= @response&.body end |