Class: Mondrian::OLAP::Level
- Inherits:
-
Object
- Object
- Mondrian::OLAP::Level
- Defined in:
- lib/mondrian_rest/mondrian_ext.rb
Instance Attribute Summary collapse
-
#hierarchy ⇒ Object
readonly
Returns the value of attribute hierarchy.
Instance Method Summary collapse
Instance Attribute Details
#hierarchy ⇒ Object (readonly)
Returns the value of attribute hierarchy.
70 71 72 |
# File 'lib/mondrian_rest/mondrian_ext.rb', line 70 def hierarchy @hierarchy end |
Instance Method Details
#full_name ⇒ Object
72 73 74 |
# File 'lib/mondrian_rest/mondrian_ext.rb', line 72 def full_name @full_name ||= @raw_level.getUniqueName end |
#to_h(member_properties = []) ⇒ Object
76 77 78 79 80 81 82 83 84 |
# File 'lib/mondrian_rest/mondrian_ext.rb', line 76 def to_h(member_properties=[]) { name: self.name, caption: self.caption, members: self.members .uniq { |m| m.property_value('MEMBER_KEY') } .map { |m| m.to_h(member_properties) } } end |