Class: ActionTracker::Workers::Custom

Inherits:
Object
  • Object
show all
Defined in:
lib/action_tracker/workers/custom.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(form) ⇒ Custom

Returns a new instance of Custom.



8
9
10
# File 'lib/action_tracker/workers/custom.rb', line 8

def initialize(form)
  @form = form
end

Instance Attribute Details

#formObject (readonly)

Returns the value of attribute form.



6
7
8
# File 'lib/action_tracker/workers/custom.rb', line 6

def form
  @form
end

Instance Method Details

#performObject



12
13
14
# File 'lib/action_tracker/workers/custom.rb', line 12

def perform
  custom_worker_proc.call(form)
end