class SixSaferpay::PaymentMethodsOptions
Attributes
alipay[RW]
ideal[RW]
Public Class Methods
new(alipay: nil, ideal: nil)
click to toggle source
# File lib/six_saferpay/models/payment_methods_options.rb, line 6 def initialize(alipay: nil, ideal: nil) @alipay = SixSaferpay::Alipay.new(alipay.to_h) if alipay @ideal = SixSaferpay::Ideal.new(ideal.to_h) if ideal end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/payment_methods_options.rb, line 11 def to_hash hash = Hash.new hash.merge!(alipay: @alipay.to_h) if @alipay hash.merge!(ideal: @ideal.to_h) if @ideal hash end
Also aliased as: to_h