Class: SixSaferpay::PaymentMethodOptions
- Inherits:
-
Object
- Object
- SixSaferpay::PaymentMethodOptions
- Defined in:
- lib/six_saferpay/models/payment_method_options.rb
Instance Attribute Summary collapse
-
#bankcontact ⇒ Object
Returns the value of attribute bankcontact.
Instance Method Summary collapse
-
#initialize(bankcontact: nil) ⇒ PaymentMethodOptions
constructor
A new instance of PaymentMethodOptions.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(bankcontact: nil) ⇒ PaymentMethodOptions
Returns a new instance of PaymentMethodOptions.
6 7 8 |
# File 'lib/six_saferpay/models/payment_method_options.rb', line 6 def initialize(bankcontact: nil) @bankcontact = SixSaferpay::Bankcontact.new(**bankcontact.to_h) if bankcontact end |
Instance Attribute Details
#bankcontact ⇒ Object
Returns the value of attribute bankcontact.
4 5 6 |
# File 'lib/six_saferpay/models/payment_method_options.rb', line 4 def bankcontact @bankcontact end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
10 11 12 13 14 |
# File 'lib/six_saferpay/models/payment_method_options.rb', line 10 def to_hash hash = Hash.new hash.merge!(bankcontact: @bankcontact.to_h) if @bankcontact hash end |