class SixSaferpay::UpdatePaymentMeans
Attributes
card[RW]
Public Class Methods
new(card: nil)
click to toggle source
# File lib/six_saferpay/models/update_payment_means.rb, line 6 def initialize(card: nil) @card = SixSaferpay::AliasCard.new(card.to_h) if card end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/update_payment_means.rb, line 10 def to_hash hash = Hash.new hash.merge!(card: @card.to_h) if @card hash end
Also aliased as: to_h