Class: Wonkavision::Analytics::CellSet::Axis
- Inherits:
-
Object
- Object
- Wonkavision::Analytics::CellSet::Axis
- Defined in:
- lib/wonkavision/plugins/analytics/cellset.rb
Instance Attribute Summary collapse
-
#dimensions ⇒ Object
readonly
Returns the value of attribute dimensions.
Instance Method Summary collapse
-
#initialize(dimensions, dimension_members, aggregation) ⇒ Axis
constructor
A new instance of Axis.
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
#dimensions ⇒ Object (readonly)
Returns the value of attribute dimensions.
77 78 79 |
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 77 def dimensions @dimensions end |