Class: Dragonfly::JobBuilder
Instance Method Summary collapse
- #build(job, *args) ⇒ Object
- #build!(job, *args) ⇒ Object
-
#initialize(&block) ⇒ JobBuilder
constructor
A new instance of JobBuilder.
Constructor Details
#initialize(&block) ⇒ JobBuilder
Returns a new instance of JobBuilder.
4 5 6 |
# File 'lib/dragonfly/job_builder.rb', line 4 def initialize(&block) @block = block end |
Instance Method Details
#build(job, *args) ⇒ Object
8 9 10 |
# File 'lib/dragonfly/job_builder.rb', line 8 def build(job, *args) evaluate_block(job, false, *args) end |
#build!(job, *args) ⇒ Object
12 13 14 |
# File 'lib/dragonfly/job_builder.rb', line 12 def build!(job, *args) evaluate_block(job, true, *args) end |