Class: ActiveReporter::Aggregator::Ratio
- Defined in:
- lib/active_reporter/aggregator/ratio.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#aggregate, #default_value, #initialize, #sql_value_name
Constructor Details
This class inherits a constructor from ActiveReporter::Aggregator::Base
Instance Method Details
#function ⇒ Object
6 7 8 |
# File 'lib/active_reporter/aggregator/ratio.rb', line 6 def function "(#{numerator}/NULLIF(#{denominator},0))" end |