Class: Webhookdb::Messages::Invite
- Inherits:
-
Webhookdb::Message::Template
- Object
- Webhookdb::Message::Template
- Webhookdb::Messages::Invite
- Defined in:
- lib/webhookdb/messages/invite.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(membership) ⇒ Invite
constructor
A new instance of Invite.
- #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(membership) ⇒ Invite
Returns a new instance of Invite.
12 13 14 15 |
# File 'lib/webhookdb/messages/invite.rb', line 12 def initialize(membership) @membership = membership super() end |
Class Method Details
Instance Method Details
#liquid_drops ⇒ Object
17 18 19 20 21 22 |
# File 'lib/webhookdb/messages/invite.rb', line 17 def liquid_drops return super.merge( organization_name: @membership.organization_name, invite_code: @membership.invitation_code, ) end |