Class: Actions::Pulp3::Repository::Presenters::RepairPresenter

Inherits:
Helpers::Presenter::Base show all
Defined in:
app/lib/actions/pulp3/repository/presenters/repair_presenter.rb

Instance Attribute Summary

Attributes inherited from Helpers::Presenter::Base

#action

Instance Method Summary collapse

Methods inherited from Helpers::Presenter::Base

#initialize

Constructor Details

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

Instance Method Details

#humanized_outputObject



6
7
8
9
10
# File 'app/lib/actions/pulp3/repository/presenters/repair_presenter.rb', line 6

def humanized_output
  if action.external_task
    humanized_details
  end
end

#progressObject



12
13
14
# File 'app/lib/actions/pulp3/repository/presenters/repair_presenter.rb', line 12

def progress
  total_units == 0 ? 0.1 : finished_units.to_f / total_units
end