Module: Wonkavision::Plugins::Aggregation::InstanceMethods
- Defined in:
- lib/wonkavision/plugins/analytics/aggregation.rb
Instance Attribute Summary collapse
-
#dimensions ⇒ Object
readonly
Returns the value of attribute dimensions.
-
#measures ⇒ Object
readonly
Returns the value of attribute measures.
Instance Method Summary collapse
- #add(measures) ⇒ Object
- #dimension_keys ⇒ Object
- #dimension_names ⇒ Object
- #initialize(dimensions) ⇒ Object
- #reject(measures) ⇒ Object
Instance Attribute Details
#dimensions ⇒ Object (readonly)
Returns the value of attribute dimensions.
83 84 85 |
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 83 def dimensions @dimensions end |
#measures ⇒ Object (readonly)
Returns the value of attribute measures.
83 84 85 |
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 83 def measures @measures end |
Instance Method Details
#add(measures) ⇒ Object
89 90 91 |
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 89 def add(measures) update(measures, :add) end |
#dimension_keys ⇒ Object
101 102 103 |
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 101 def dimension_keys @dimension_keys ||= self.class.dimension_keys(@dimensions) end |
#dimension_names ⇒ Object
97 98 99 |
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 97 def dimension_names @dimension_names ||= self.class.dimension_names(@dimensions) end |
#initialize(dimensions) ⇒ Object
85 86 87 |
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 85 def initialize(dimensions) @dimensions = dimensions end |
#reject(measures) ⇒ Object
93 94 95 |
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 93 def reject(measures) update(measures, :reject) end |