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