Class: Bambora::Bank::Adapters::PaymentProfileResponse
- Inherits:
-
Object
- Object
- Bambora::Bank::Adapters::PaymentProfileResponse
- Defined in:
- lib/bambora/bank/adapters/payment_profile_response.rb
Overview
Transforms hash keys from camelCase to snake_case and strips vendor-specific prefixes.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ PaymentProfileResponse
constructor
A new instance of PaymentProfileResponse.
- #to_h ⇒ Object
Constructor Details
#initialize(response) ⇒ PaymentProfileResponse
Returns a new instance of PaymentProfileResponse.
11 12 13 |
# File 'lib/bambora/bank/adapters/payment_profile_response.rb', line 11 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/bambora/bank/adapters/payment_profile_response.rb', line 9 def response @response end |
Instance Method Details
#to_h ⇒ Object
15 16 17 18 19 |
# File 'lib/bambora/bank/adapters/payment_profile_response.rb', line 15 def to_h parsed_query_string.transform_keys do |key| transform(key) end end |