Class: Payment::PaypalStatusResult
- Inherits:
-
Data
- Object
- Data
- Payment::PaypalStatusResult
- Defined in:
- app/models/payment.rb
Overview
Outcome of a PayPal authorization status sync: a status symbol plus an
optional human-readable message.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #initialize(status:, message: nil) ⇒ Payment::PaypalStatusResult constructor
-
#ok? ⇒ Boolean
True when the status leaves the payment usable.
Constructor Details
#initialize(status:, message: nil) ⇒ Payment::PaypalStatusResult
702 703 |
# File 'app/models/payment.rb', line 702 def initialize(status:, message: nil) = super # @return [Boolean] true when the status leaves the payment usable |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
698 699 700 |
# File 'app/models/payment.rb', line 698 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status
698 699 700 |
# File 'app/models/payment.rb', line 698 def status @status end |
Instance Method Details
#ok? ⇒ Boolean
Returns true when the status leaves the payment usable.
704 |
# File 'app/models/payment.rb', line 704 def ok? = status.in?(%i[authorized reauthorized captured still_valid]) |