Class: Mondrian::OLAP::Dimension

Inherits:
Object
  • Object
show all
Defined in:
lib/mondrian_rest/mondrian_ext.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



56
57
58
59
60
61
62
63
64
65
66
# File 'lib/mondrian_rest/mondrian_ext.rb', line 56

def to_h
  {
    hierarchies: self.hierarchies.map { |h|
      {
        name: h.name,
        has_all: h.has_all?,
        levels: h.levels.map(&:to_h) #/levels
      } # /hierarchies
    } #/map
  } #/ dimension
end