Exception: AmexEnhancedAuthorization::Request::UnexpectedHttpResponse
- Inherits:
-
StandardError
- Object
- StandardError
- AmexEnhancedAuthorization::Request::UnexpectedHttpResponse
- Defined in:
- lib/amex_enhanced_authorization/request.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ UnexpectedHttpResponse
constructor
A new instance of UnexpectedHttpResponse.
Constructor Details
#initialize(response) ⇒ UnexpectedHttpResponse
Returns a new instance of UnexpectedHttpResponse.
35 36 37 38 |
# File 'lib/amex_enhanced_authorization/request.rb', line 35 def initialize(response) @response = response super "#{response.} (#{response.code}): #{response.body}" end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
33 34 35 |
# File 'lib/amex_enhanced_authorization/request.rb', line 33 def response @response end |