Module: Transbank::Onepay::Response
- Includes:
- Utils::JSONUtils, Utils::SignatureUtils
- Defined in:
- lib/transbank/sdk/onepay/responses/response.rb
Overview
Shared methods and attributes between all types of Responses
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#response_code ⇒ Object
Returns the value of attribute response_code.
Instance Method Summary collapse
Methods included from Utils::SignatureUtils
#hmac_sha256, #signature_for, #to_data, #valid_signature?
Methods included from Utils::JSONUtils
included, #jsonify, #transform_hash_keys, #underscore
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/transbank/sdk/onepay/responses/response.rb', line 7 def description @description end |
#response_code ⇒ Object
Returns the value of attribute response_code.
6 7 8 |
# File 'lib/transbank/sdk/onepay/responses/response.rb', line 6 def response_code @response_code end |
Instance Method Details
#full_description ⇒ Object
13 14 15 |
# File 'lib/transbank/sdk/onepay/responses/response.rb', line 13 def full_description "#{ response_code } : #{ description }" end |
#response_ok? ⇒ Boolean
9 10 11 |
# File 'lib/transbank/sdk/onepay/responses/response.rb', line 9 def response_ok? response_code.downcase == 'ok' end |