Class: Wonkavision::Analytics::CellSet::Dimension

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#definitionObject (readonly)

Returns the value of attribute definition.



89
90
91
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 89

def definition
  @definition
end

#membersObject (readonly)

Returns the value of attribute members.



89
90
91
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 89

def members
  @members
end

#nameObject (readonly)

Returns the value of attribute name.



89
90
91
# File 'lib/wonkavision/plugins/analytics/cellset.rb', line 89

def name
  @name
end