Class: Ufebs::Documents::PaymentResponse
- Inherits:
-
Object
- Object
- Ufebs::Documents::PaymentResponse
- Includes:
- HappyMapper
- Defined in:
- lib/ufebs/documents/payment_response.rb
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ PaymentResponse
constructor
A new instance of PaymentResponse.
Constructor Details
#initialize(params = {}) ⇒ PaymentResponse
Returns a new instance of PaymentResponse.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ufebs/documents/payment_response.rb', line 27 def initialize(params = {}) params.each do |key, value| case key when :acc_doc @acc_doc = value.is_a?(Hash) ? ::Ufebs::Entities::AccDoc.new(value) : acc_doc when :ed_ref_id @ed_ref_id = value.is_a?(Hash) ? ::Ufebs::Entities::EdRefId.new(value) : acc_doc when :processing_details @processing_details = value.is_a?(Hash) ? ::Ufebs::Entities::ProcessingDetails.new(value) : acc_doc else instance_variable_set("@#{key}".to_sym, value) end super() end end |