Class: Vpago::Payway::PaymentStatusMarker
- Inherits:
-
Object
- Object
- Vpago::Payway::PaymentStatusMarker
- Defined in:
- lib/vpago/payway/payment_status_marker.rb
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
- #call ⇒ Object
-
#initialize(payment, options = {}) ⇒ PaymentStatusMarker
constructor
:status, :description, :updated_by_user_id, updated_reason.
Constructor Details
#initialize(payment, options = {}) ⇒ PaymentStatusMarker
:status, :description, :updated_by_user_id, updated_reason
7 8 9 10 11 12 |
# File 'lib/vpago/payway/payment_status_marker.rb', line 7 def initialize(payment, = {}) @payment = payment @options = @options[:status] = @options[:status] || false end |
Instance Attribute Details
#error_message ⇒ Object
Returns the value of attribute error_message.
4 5 6 |
# File 'lib/vpago/payway/payment_status_marker.rb', line 4 def @error_message end |
#payment ⇒ Object
Returns the value of attribute payment.
4 5 6 |
# File 'lib/vpago/payway/payment_status_marker.rb', line 4 def payment @payment end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 |
# File 'lib/vpago/payway/payment_status_marker.rb', line 14 def call ActiveRecord::Base.transaction do update_payment_source update_payment_and_order end end |