Module: Wonkavision::Plugins::Aggregation::InstanceMethods

Defined in:
lib/wonkavision/plugins/analytics/aggregation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dimensionsObject (readonly)

Returns the value of attribute dimensions.



83
84
85
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 83

def dimensions
  @dimensions
end

#measuresObject (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_keysObject



101
102
103
# File 'lib/wonkavision/plugins/analytics/aggregation.rb', line 101

def dimension_keys
  @dimension_keys ||= self.class.dimension_keys(@dimensions)
end

#dimension_namesObject



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