Module: Wonkavision::Plugins::Aggregation

Defined in:
lib/wonkavision/plugins/analytics/aggregation.rb,
lib/wonkavision/plugins/analytics/aggregation/measure.rb,
lib/wonkavision/plugins/analytics/aggregation/attribute.rb,
lib/wonkavision/plugins/analytics/aggregation/dimension.rb,
lib/wonkavision/plugins/analytics/aggregation/aggregation_spec.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: AggregationSpec, Attribute, Dimension, Measure

Class Method Summary collapse

Class Method Details

.allObject



5
6
7
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 5

def self.all
  @@all ||= {}
end

.configure(aggregation, options = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 9

def self.configure(aggregation,options={})
  aggregation.write_inheritable_attribute :aggregation_options, options
  aggregation.class_inheritable_reader :aggregation_options

  aggregation.write_inheritable_attribute( :aggregation_spec,
                                           AggregationSpec.new(aggregation.name) )
  aggregation.class_inheritable_reader :aggregation_spec

  Aggregation.all[aggregation.name] = aggregation
end