Class: Vpago::PaymentRequestUpdater
- Inherits:
-
Object
- Object
- Vpago::PaymentRequestUpdater
- Defined in:
- lib/vpago/payment_request_updater.rb
Direct Known Subclasses
Acleda::PaymentRequestUpdater, AcledaMobile::PaymentRequestUpdater, Vpago::Payway::PaymentRequestUpdater, Vpago::PaywayV2::PaymentRequestUpdater, WingSdk::PaymentRequestUpdater
Instance Attribute Summary collapse
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#payment ⇒ Object
Returns the value of attribute payment.
Instance Method Summary collapse
- #ignore_on_failed? ⇒ Boolean
-
#initialize(payment, options = {}) ⇒ PaymentRequestUpdater
constructor
A new instance of PaymentRequestUpdater.
- #success? ⇒ Boolean
Constructor Details
#initialize(payment, options = {}) ⇒ PaymentRequestUpdater
5 6 7 8 9 |
# File 'lib/vpago/payment_request_updater.rb', line 5 def initialize(payment, = {}) @options = @payment = payment @error_message = nil end |
Instance Attribute Details
#error_message ⇒ Object
Returns the value of attribute error_message.
3 4 5 |
# File 'lib/vpago/payment_request_updater.rb', line 3 def @error_message end |
#payment ⇒ Object
Returns the value of attribute payment.
3 4 5 |
# File 'lib/vpago/payment_request_updater.rb', line 3 def payment @payment end |
Instance Method Details
#ignore_on_failed? ⇒ Boolean
11 12 13 |
# File 'lib/vpago/payment_request_updater.rb', line 11 def ignore_on_failed? @options[:ignore_on_failed] || false end |
#success? ⇒ Boolean
15 16 17 |
# File 'lib/vpago/payment_request_updater.rb', line 15 def success? @error_message.nil? end |