Class: Heya::Campaigns::Actions::Block

Inherits:
Heya::Campaigns::Action show all
Defined in:
lib/heya/campaigns/actions/block.rb

Defined Under Namespace

Classes: Execution

Instance Attribute Summary

Attributes inherited from Heya::Campaigns::Action

#step, #user

Instance Method Summary collapse

Methods inherited from Heya::Campaigns::Action

#deliver_later, #deliver_now, #initialize

Constructor Details

This class inherits a constructor from Heya::Campaigns::Action

Instance Method Details

#buildObject



17
18
19
20
# File 'lib/heya/campaigns/actions/block.rb', line 17

def build
  block = step.params.fetch("block")
  Execution.new(user: user, step: step, &block)
end