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