Class: Mondrian::OLAP::Schema::Annotations
- Inherits:
-
Mondrian::OLAP::SchemaElement
- Object
- Mondrian::OLAP::SchemaElement
- Mondrian::OLAP::Schema::Annotations
- 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, &block) ⇒ Annotations
constructor
A new instance of Annotations.
Methods inherited from Mondrian::OLAP::SchemaElement
attributes, content, data_dictionary_names, elements, #to_xml, #xml
Constructor Details
#initialize(name = nil, attributes = {}, parent = nil, &block) ⇒ Annotations
Returns a new instance of Annotations.
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 |
# File 'lib/mondrian/olap/schema.rb', line 488 def initialize(name = nil, attributes = {}, parent = nil, &block) if name.is_a?(Hash) attributes = name name = nil end if block_given? super(name, attributes, parent, &block) else super(nil, {}, parent) do attributes.each do |key, value| annotation key.to_s, value.to_s end end end end |