Class: Yookassa::Entities::Receipt
- Defined in:
- lib/yookassa/entities/receipt.rb
Overview
Receipt entity with status helpers.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#succeeded? ⇒ Boolean
trueif the receipt was delivered 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
#succeeded? ⇒ Boolean
10 11 12 |
# File 'lib/yookassa/entities/receipt.rb', line 10 def succeeded? status == "succeeded" end |