Class: OnlinePayments::SDK::Domain::PaymentProduct5704AutoCapture
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProduct5704AutoCapture
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb
Instance Attribute Summary collapse
-
#delay_in_minutes ⇒ Integer
The current value of delay_in_minutes.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#delay_in_minutes ⇒ Integer
Returns the current value of delay_in_minutes.
10 11 12 |
# File 'lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb', line 10 def delay_in_minutes @delay_in_minutes end |
Instance Method Details
#from_hash(hash) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb', line 21 def from_hash(hash) super if hash.has_key? 'delayInMinutes' @delay_in_minutes = hash['delayInMinutes'] end end |
#to_h ⇒ Hash
15 16 17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb', line 15 def to_h hash = super hash['delayInMinutes'] = @delay_in_minutes unless @delay_in_minutes.nil? hash end |