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