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