Class: Webhookdb::Messages::Verification
- Inherits:
-
Webhookdb::Message::Template
- Object
- Webhookdb::Message::Template
- Webhookdb::Messages::Verification
- Defined in:
- lib/webhookdb/messages/verification.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(reset_code) ⇒ Verification
constructor
A new instance of Verification.
- #liquid_drops ⇒ Object
Methods inherited from Webhookdb::Message::Template
#dispatch, #dispatch_email, #extra_fields, #full_template_name, #layout, #layout_path, #liquify, #template_folder, #template_name, #template_path
Constructor Details
#initialize(reset_code) ⇒ Verification
Returns a new instance of Verification.
11 12 13 14 |
# File 'lib/webhookdb/messages/verification.rb', line 11 def initialize(reset_code) @reset_code = reset_code super() end |
Class Method Details
Instance Method Details
#liquid_drops ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/webhookdb/messages/verification.rb', line 16 def liquid_drops return super.merge( expire_at: @reset_code.expire_at, token: @reset_code.token, email: @reset_code.customer.email, ) end |