Class: Buckaruby::ApiResponse
- Defined in:
- lib/buckaruby/response.rb
Overview
Base class for a response via the API.
Direct Known Subclasses
CancelResponse, RecurrentTransactionResponse, RefundInfoResponse, RefundTransactionResponse, SetupTransactionResponse, StatusResponse, TransactionSpecificationResponse
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(body, config) ⇒ ApiResponse
constructor
A new instance of ApiResponse.
Methods inherited from Response
#additional, #custom, #params, #status, #timestamp
Constructor Details
#initialize(body, config) ⇒ ApiResponse
Returns a new instance of ApiResponse.
164 165 166 167 168 169 170 171 172 |
# File 'lib/buckaruby/response.rb', line 164 def initialize(body, config) super if api_result.nil? || api_result.casecmp('fail').zero? raise ApiException, params end Signature.verify!(config, response) end |