Class: Yookassa::Entities::Deal

Inherits:
Base
  • Object
show all
Defined in:
lib/yookassa/entities/deal.rb

Overview

Deal (Safe Deal) entity with status helpers.

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

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