Class: Mondrian::OLAP::Schema::Level
- Inherits:
-
Mondrian::OLAP::SchemaElement
- Object
- Mondrian::OLAP::SchemaElement
- Mondrian::OLAP::Schema::Level
- Defined in:
- lib/mondrian/olap/schema.rb
Instance Attribute Summary
Attributes inherited from Mondrian::OLAP::SchemaElement
Instance Method Summary collapse
-
#initialize(name = nil, attributes = {}, parent = nil) ⇒ Level
constructor
A new instance of Level.
Methods inherited from Mondrian::OLAP::SchemaElement
attributes, content, data_dictionary_names, elements, #to_xml, #xml
Constructor Details
#initialize(name = nil, attributes = {}, parent = nil) ⇒ Level
Returns a new instance of Level.
230 231 232 233 234 235 236 |
# File 'lib/mondrian/olap/schema.rb', line 230 def initialize(name = nil, attributes = {}, parent = nil) super # set :unique_members by default to true for first level and false for next levels if @attributes[:unique_members].nil? @attributes[:unique_members] = parent.levels.empty? end end |