Class: ActiveReporter::Dimension::Enum
- Defined in:
- lib/active_reporter/dimension/enum.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Category
Methods inherited from Base
#attribute, #expression, #extract_sql_value, #filter, #filter_values, #filtering?, #group, #grouping?, #initialize, #model, #null_order, #nulls_last?, #order, #order_expression, #params, #relate, #sort_desc?, #sort_order
Constructor Details
This class inherits a constructor from ActiveReporter::Dimension::Base
Instance Method Details
#all_values ⇒ Object
13 14 15 |
# File 'lib/active_reporter/dimension/enum.rb', line 13 def all_values enum_values.keys.unshift(nil) end |
#group_values ⇒ Object
6 7 8 9 10 11 |
# File 'lib/active_reporter/dimension/enum.rb', line 6 def group_values return filter_values if filtering? # i = report.groupers.key(self) all_values & report.raw_data.keys.map { |x| x[0] }.uniq end |