Class: Mondrian::OLAP::Schema::Hierarchy
- Inherits:
-
Mondrian::OLAP::SchemaElement
- Object
- Mondrian::OLAP::SchemaElement
- Mondrian::OLAP::Schema::Hierarchy
- 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) ⇒ Hierarchy
constructor
A new instance of Hierarchy.
Methods inherited from Mondrian::OLAP::SchemaElement
attributes, content, data_dictionary_names, elements, #to_xml, #xml
Constructor Details
#initialize(name = nil, attributes = {}, parent = nil) ⇒ Hierarchy
Returns a new instance of Hierarchy.
159 160 161 162 163 164 165 |
# File 'lib/mondrian/olap/schema.rb', line 159 def initialize(name = nil, attributes = {}, parent = nil) super # set :has_all => true if :all_member_name is set if @attributes[:has_all].nil? && @attributes[:all_member_name] @attributes[:has_all] = true end end |