Class: Webhookdb::Messages::Testers::WithField

Inherits:
Base show all
Defined in:
lib/webhookdb/messages/specs.rb

Instance Method Summary collapse

Methods inherited from Base

#layout, #template_folder

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_dropsObject



25
26
27
# File 'lib/webhookdb/messages/specs.rb', line 25

def liquid_drops
  return super.merge(field: @field)
end