Exception: Requests::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Requests::Error
- Defined in:
- lib/requests.rb
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.
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
10 11 12 13 14 |
# File 'lib/requests.rb', line 10 def initialize(response) super(response.) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/requests.rb', line 8 def response @response end |