Class: Wonkavision::Analytics::CellSet::Axis

Inherits:
Object
  • Object
show all
Defined in:
lib/wonkavision/plugins/analytics/cellset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimensions, dimension_members, aggregation) ⇒ Axis



78
79
80
81
82
83
84
85
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 78

def initialize(dimensions,dimension_members,aggregation)
  @dimensions = []
  dimensions.each do |dim_name|
    definition = aggregation.dimensions[dim_name]
    members = dimension_members[dim_name.to_s]
    @dimensions << Dimension.new(dim_name,definition,members)
  end
end

Instance Attribute Details

#dimensionsObject (readonly)

Returns the value of attribute dimensions.



77
78
79
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 77

def dimensions
  @dimensions
end