Exception: RAWS::HTTP::Error
- Inherits:
-
StandardError
- Object
- StandardError
- RAWS::HTTP::Error
- Defined in:
- lib/raws/http.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.
14 15 16 17 |
# File 'lib/raws/http.rb', line 14 def initialize(response) super("code=#{response.code},body=#{response.body}") @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
12 13 14 |
# File 'lib/raws/http.rb', line 12 def response @response end |