Class: Actions::Pulp3::Repository::Presenters::ContentUnitPresenter
- Inherits:
-
AbstractSyncPresenter
- Object
- Helpers::Presenter::Base
- AbstractSyncPresenter
- Actions::Pulp3::Repository::Presenters::ContentUnitPresenter
- Defined in:
- app/lib/actions/pulp3/repository/presenters/content_unit_presenter.rb
Instance Attribute Summary
Attributes inherited from Helpers::Presenter::Base
Instance Method Summary collapse
Methods inherited from AbstractSyncPresenter
Methods inherited from Helpers::Presenter::Base
#humanized_output, #initialize
Constructor Details
This class inherits a constructor from Actions::Helpers::Presenter::Base
Instance Method Details
#progress ⇒ Object
6 7 8 |
# File 'app/lib/actions/pulp3/repository/presenters/content_unit_presenter.rb', line 6 def progress total_units == 0 ? 0.1 : finished_units.to_f / total_units end |