class SixSaferpay::SixTransaction::AdjustAmountResponse

Attributes

response_header[RW]

Public Class Methods

new(response_header: ) click to toggle source
# File lib/six_saferpay/api/six_transaction/responses/adjust_amount_response.rb, line 7
def initialize(response_header: )
  @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/api/six_transaction/responses/adjust_amount_response.rb, line 11
def to_hash
  hash = Hash.new
  hash.merge!(response_header: @response_header.to_h) if @response_header
  hash
end
Also aliased as: to_h