Class: Webhookdb::Messages::Testers::WithField
- Inherits:
-
Base
- Object
- Webhookdb::Message::Template
- Base
- Webhookdb::Messages::Testers::WithField
- Defined in:
- lib/webhookdb/messages/specs.rb
Instance Method Summary collapse
-
#initialize(field) ⇒ WithField
constructor
A new instance of WithField.
- #liquid_drops ⇒ Object
Methods inherited from Base
Methods inherited from Webhookdb::Message::Template
#dispatch, #dispatch_email, #extra_fields, fixtured, #full_template_name, #layout, #layout_path, #liquify, #template_folder, #template_name, #template_path
Constructor Details
#initialize(field) ⇒ WithField
Returns a new instance of WithField.
20 21 22 23 |
# File 'lib/webhookdb/messages/specs.rb', line 20 def initialize(field) @field = field super() end |
Instance Method Details
#liquid_drops ⇒ Object
25 26 27 |
# File 'lib/webhookdb/messages/specs.rb', line 25 def liquid_drops return super.merge(field: @field) end |