Module: Rubiks

Defined in:
lib/rubiks/mondrian/errors.rb,
lib/rubiks.rb,
lib/rubiks/cube.rb,
lib/rubiks/level.rb,
lib/rubiks/schema.rb,
lib/rubiks/measure.rb,
lib/rubiks/version.rb,
lib/rubiks/mondrian.rb,
lib/rubiks/dimension.rb,
lib/rubiks/hierarchy.rb,
lib/rubiks/named_object.rb,
lib/rubiks/mondrian/member.rb,
lib/rubiks/mondrian/cell_set.rb,
lib/rubiks/calculated_measure.rb,
lib/rubiks/mondrian/connection.rb

Overview

Taken from mondrian-olap: https://github.com/rsim/mondrian-olap/blob/master/lib/mondrian/olap/cube.rb require 'rubiks/mondrian/cell_set' require 'rubiks/mondrian/errors'

Defined Under Namespace

Modules: Mondrian Classes: CalculatedMeasure, Cube, Dimension, Hierarchy, Level, Measure, MondrianError, NamedObject, Schema

Constant Summary collapse

VERSION =
'0.1.5'

Class Method Summary collapse

Class Method Details

.connectionObject



22
23
24
# File 'lib/rubiks.rb', line 22

def self.connection
  raise 'No connection has been specified - try requiring rubiks/mondrian'
end

.execute(query) ⇒ Object



26
27
28
# File 'lib/rubiks.rb', line 26

def self.execute(query)
  connection.execute(query)
end

.schemaObject



30
31
32
# File 'lib/rubiks.rb', line 30

def self.schema
  @schema ||= ::Rubiks::Schema.default
end