Exception: Blingee::ErrorWithResponse
- Defined in:
- lib/blingee/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Error
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
14 15 16 |
# File 'lib/blingee/exceptions.rb', line 14 def response @response end |
Class Method Details
.from_exception_with_response(e, response) ⇒ Object
16 17 18 19 20 |
# File 'lib/blingee/exceptions.rb', line 16 def self.from_exception_with_response(e, response) from_exception(e).tap do |exception| exception.response = response end end |
Instance Method Details
#http_code ⇒ Object
22 23 24 |
# File 'lib/blingee/exceptions.rb', line 22 def http_code response.code.to_i if response end |