Class: SixSaferpay::SixTransaction::MultipartFinalizeResponse
- Inherits:
-
Object
- Object
- SixSaferpay::SixTransaction::MultipartFinalizeResponse
- Defined in:
- lib/six_saferpay/api/six_transaction/responses/multipart_finalize_response.rb
Instance Attribute Summary collapse
-
#response_header ⇒ Object
Returns the value of attribute response_header.
Instance Method Summary collapse
-
#initialize(response_header:) ⇒ MultipartFinalizeResponse
constructor
A new instance of MultipartFinalizeResponse.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(response_header:) ⇒ MultipartFinalizeResponse
Returns a new instance of MultipartFinalizeResponse.
7 8 9 |
# File 'lib/six_saferpay/api/six_transaction/responses/multipart_finalize_response.rb', line 7 def initialize(response_header:) @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header end |
Instance Attribute Details
#response_header ⇒ Object
Returns the value of attribute response_header.
5 6 7 |
# File 'lib/six_saferpay/api/six_transaction/responses/multipart_finalize_response.rb', line 5 def response_header @response_header end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
11 12 13 14 15 |
# File 'lib/six_saferpay/api/six_transaction/responses/multipart_finalize_response.rb', line 11 def to_hash hash = Hash.new hash.merge!(response_header: @response_header.to_h) if @response_header hash end |