Class: ActiveReporter::Calculator::Base
Direct Known Subclasses
Ratio
Instance Attribute Summary
#name, #opts, #report
Instance Method Summary
collapse
#aggregate, #default_value, #initialize, #sql_value_name
Instance Method Details
#aggregator ⇒ Object
6
7
8
|
# File 'lib/active_reporter/calculator/base.rb', line 6
def aggregator
opts[:aggregator] || name
end
|
#parent_aggregator ⇒ Object
10
11
12
|
# File 'lib/active_reporter/calculator/base.rb', line 10
def parent_aggregator
opts[:parent_aggregator] || aggregator
end
|
#totals? ⇒ Boolean
14
15
16
|
# File 'lib/active_reporter/calculator/base.rb', line 14
def totals?
!!opts[:totals]
end
|