Class: Actions::Pulp3::Repository::Presenters::ContentUnitPresenter

Inherits:
AbstractSyncPresenter show all
Defined in:
app/lib/actions/pulp3/repository/presenters/content_unit_presenter.rb

Instance Attribute Summary

Attributes inherited from Helpers::Presenter::Base

#action

Instance Method Summary collapse

Methods inherited from AbstractSyncPresenter

#humanized_output

Methods inherited from Helpers::Presenter::Base

#humanized_output, #initialize

Constructor Details

This class inherits a constructor from Actions::Helpers::Presenter::Base

Instance Method Details

#progressObject



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