Class: Yookassa::Entities::Payout
- Defined in:
- lib/yookassa/entities/payout.rb
Overview
Payout entity with status helpers.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#canceled? ⇒ Boolean
trueif the payout was canceled. -
#succeeded? ⇒ Boolean
trueif the payout 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 payout was canceled.
15 16 17 |
# File 'lib/yookassa/entities/payout.rb', line 15 def canceled? status == "canceled" end |
#succeeded? ⇒ Boolean
Returns true if the payout completed successfully.
10 11 12 |
# File 'lib/yookassa/entities/payout.rb', line 10 def succeeded? status == "succeeded" end |