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