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