Class: Payment::PaypalStatusResult
- Inherits:
-
Data
- Object
- Data
- Payment::PaypalStatusResult
- Defined in:
- app/models/payment.rb
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) ⇒ PaypalStatusResult
constructor
A new instance of PaypalStatusResult.
- #ok? ⇒ Boolean
Constructor Details
#initialize(status:, message: nil) ⇒ PaypalStatusResult
Returns a new instance of PaypalStatusResult.
475 |
# File 'app/models/payment.rb', line 475 def initialize(status:, message: nil) = super |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
474 475 476 |
# File 'app/models/payment.rb', line 474 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status
474 475 476 |
# File 'app/models/payment.rb', line 474 def status @status end |
Instance Method Details
#ok? ⇒ Boolean
476 |
# File 'app/models/payment.rb', line 476 def ok? = status.in?(%i[authorized reauthorized captured still_valid]) |