Class: Yookassa::Entities::Refund
- Defined in:
- lib/yookassa/entities/refund.rb
Overview
Refund entity with status helpers.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#canceled? ⇒ Boolean
trueif the refund was canceled. -
#succeeded? ⇒ Boolean
trueif the refund completed successfully.
Methods inherited from Base
#[], #initialize, #respond_to_missing?, #to_h
Constructor Details
This class inherits a constructor from Yookassa::Entities::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Yookassa::Entities::Base
Instance Method Details
#canceled? ⇒ Boolean
Returns true if the refund was canceled.
15 16 17 |
# File 'lib/yookassa/entities/refund.rb', line 15 def canceled? status == "canceled" end |
#succeeded? ⇒ Boolean
Returns true if the refund completed successfully.
10 11 12 |
# File 'lib/yookassa/entities/refund.rb', line 10 def succeeded? status == "succeeded" end |