Module: Woodhouse::Progress::JobWithProgress
- Defined in:
- lib/woodhouse/extensions/progress.rb
Instance Attribute Summary collapse
-
#progress_sink ⇒ Object
Returns the value of attribute progress_sink.
Instance Method Summary collapse
Instance Attribute Details
#progress_sink ⇒ Object
Returns the value of attribute progress_sink.
137 138 139 |
# File 'lib/woodhouse/extensions/progress.rb', line 137 def progress_sink @progress_sink end |
Instance Method Details
#status_ticker(name, keyw = {}) ⇒ Object
139 140 141 |
# File 'lib/woodhouse/extensions/progress.rb', line 139 def status_ticker(name, keyw = {}) StatusTicker.new(self, name, keyw) end |
#update_progress(data) ⇒ Object
143 144 145 146 |
# File 'lib/woodhouse/extensions/progress.rb', line 143 def update_progress(data) job = self Celluloid::Future.new { progress_sink.update_job(job, data) } end |