Class: BrokenWindow::Formatters::Percentage

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::NumberHelper
Defined in:
app/services/broken_window/formatters/percentage.rb

Instance Method Summary collapse

Instance Method Details

#call(value) ⇒ Object



6
7
8
# File 'app/services/broken_window/formatters/percentage.rb', line 6

def call(value)
  number_to_percentage(value, precision: 0) if value
end