Class: Mondrian::OLAP::Schema::Measure

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) ⇒ Measure

Returns a new instance of Measure.



299
300
301
302
303
# File 'lib/mondrian/olap/schema.rb', line 299

def initialize(name = nil, attributes = {}, parent = nil)
  super
  # by default set aggregator to sum
  @attributes[:aggregator] ||= 'sum'
end