Class: Workarea::Pricing::Discount::Redemption
- Inherits:
-
Object
- Object
- Workarea::Pricing::Discount::Redemption
- Includes:
- ApplicationDocument
- Defined in:
- app/models/workarea/pricing/discount/redemption.rb
Overview
Represents an instance of redemption for a Workarea::Pricing::Discount. Used for calculating single use discounts.
Instance Attribute Summary collapse
-
#discount ⇒ Discount
The discount.
-
#email ⇒ String
The email that received the discount.
Method Summary
Methods included from ApplicationDocument
Methods included from Sidekiq::Callbacks
add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list
Methods included from Mongoid::Document
Instance Attribute Details
#discount ⇒ Discount
Returns the discount.
18 19 |
# File 'app/models/workarea/pricing/discount/redemption.rb', line 18 belongs_to :discount, class_name: 'Workarea::Pricing::Discount' |