Class: Yookassa::Entities::Deal
- Defined in:
- lib/yookassa/entities/deal.rb
Overview
Deal (Safe Deal) entity with status helpers.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#closed? ⇒ Boolean
trueif the deal has been closed. -
#opened? ⇒ Boolean
trueif the deal is currently open.
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
#closed? ⇒ Boolean
15 16 17 |
# File 'lib/yookassa/entities/deal.rb', line 15 def closed? status == "closed" end |
#opened? ⇒ Boolean
10 11 12 |
# File 'lib/yookassa/entities/deal.rb', line 10 def opened? status == "opened" end |