Class: Vantiv::Api::Response
- Inherits:
-
Object
- Object
- Vantiv::Api::Response
- Extended by:
- Forwardable
- Defined in:
- lib/vantiv/api/response.rb
Direct Known Subclasses
CaptureResponse, LiveTransactionResponse, TiedTransactionResponse, TokenizationResponse
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#http_response_code ⇒ Object
Returns the value of attribute http_response_code.
-
#httpok ⇒ Object
Returns the value of attribute httpok.
-
#raw_body ⇒ Object
Returns the value of attribute raw_body.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
8 9 10 |
# File 'lib/vantiv/api/response.rb', line 8 def body @body end |
#http_response_code ⇒ Object
Returns the value of attribute http_response_code.
8 9 10 |
# File 'lib/vantiv/api/response.rb', line 8 def http_response_code @http_response_code end |
#httpok ⇒ Object
Returns the value of attribute httpok.
8 9 10 |
# File 'lib/vantiv/api/response.rb', line 8 def httpok @httpok end |
#raw_body ⇒ Object
Returns the value of attribute raw_body.
8 9 10 |
# File 'lib/vantiv/api/response.rb', line 8 def raw_body @raw_body end |
Instance Method Details
#api_level_failure? ⇒ Boolean
12 13 14 |
# File 'lib/vantiv/api/response.rb', line 12 def api_level_failure? !httpok || litle_response_has_error? end |
#error_message ⇒ Object
16 17 18 |
# File 'lib/vantiv/api/response.rb', line 16 def api_level_failure? ? : end |