Class: SolrWrapper::Downloader::SafeProgressBar
- Inherits:
-
ProgressBar::Base
- Object
- ProgressBar::Base
- SolrWrapper::Downloader::SafeProgressBar
- Defined in:
- lib/solr_wrapper/downloader.rb
Instance Method Summary collapse
Instance Method Details
#progress=(new_progress) ⇒ Object
25 26 27 28 |
# File 'lib/solr_wrapper/downloader.rb', line 25 def progress=(new_progress) self.total = new_progress if total.to_i <= new_progress super end |
#total=(new_total) ⇒ Object
30 31 32 |
# File 'lib/solr_wrapper/downloader.rb', line 30 def total=(new_total) super if new_total && new_total >= 0 end |