Class: Wonkavision::Analytics::CellSet::Dimension
- Inherits:
-
Object
- Object
- Wonkavision::Analytics::CellSet::Dimension
- Defined in:
- lib/wonkavision/plugins/analytics/cellset.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#members ⇒ Object
readonly
Returns the value of attribute members.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, definition, members) ⇒ Dimension
constructor
A new instance of Dimension.
Constructor Details
#initialize(name, definition, members) ⇒ Dimension
Returns a new instance of Dimension.
90 91 92 93 94 |
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 90 def initialize(name,definition,members) @name = name.to_s @definition = definition @members = members ? members.values.map{ |mem_data| Member.new(self,mem_data)}.sort : [] end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
89 90 91 |
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 89 def definition @definition end |
#members ⇒ Object (readonly)
Returns the value of attribute members.
89 90 91 |
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 89 def members @members end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
89 90 91 |
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 89 def name @name end |