Class: Redemption::Notification
- Inherits:
-
Object
- Object
- Redemption::Notification
- Includes:
- MoneyRails::ActionViewExtension, Workers::Views
- Defined in:
- lib/redemption/notification.rb
Constant Summary collapse
- HOW_TO_USE_LINK =
I18n.t('external_links.faqs')
Instance Attribute Summary collapse
-
#reward ⇒ Object
Returns the value of attribute reward.
-
#voucher ⇒ Object
Returns the value of attribute voucher.
Instance Method Summary collapse
-
#initialize(reward, voucher = nil) ⇒ Notification
constructor
A new instance of Notification.
- #redeem_as_voucher ⇒ Object
Methods included from Workers::Views
Constructor Details
#initialize(reward, voucher = nil) ⇒ Notification
Returns a new instance of Notification.
15 16 17 18 |
# File 'lib/redemption/notification.rb', line 15 def initialize(reward, voucher = nil) self.reward = reward self.voucher = voucher end |
Instance Attribute Details
#reward ⇒ Object
Returns the value of attribute reward.
10 11 12 |
# File 'lib/redemption/notification.rb', line 10 def reward @reward end |
#voucher ⇒ Object
Returns the value of attribute voucher.
10 11 12 |
# File 'lib/redemption/notification.rb', line 10 def voucher @voucher end |
Instance Method Details
#redeem_as_voucher ⇒ Object
20 21 22 23 |
# File 'lib/redemption/notification.rb', line 20 def redeem_as_voucher send_redeem_as_voucher_email_to_user send_redeem_as_voucher_sms_to_user end |