Class: Mondrian::OLAP::Schema::Hierarchy

Inherits:
Mondrian::OLAP::SchemaElement show all
Defined in:
lib/mondrian/olap/schema.rb

Instance Attribute Summary

Attributes inherited from Mondrian::OLAP::SchemaElement

#xml_fragments

Instance Method Summary collapse

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