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.8'

Class Method Summary collapse

Class Method Details

.clear_cacheObject



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

def self.clear_cache
  ::Rubiks::Mondrian.flush_schema_cache
  ::Rubiks::Mondrian.reset_connection
end

.connectionObject



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

def self.connection
  Rubiks::Mondrian.connection
end

.execute(query) ⇒ Object



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

def self.execute(query)
  ::Rubiks::Mondrian.connection.execute(query)
end

.schemaObject



35
36
37
# File 'lib/rubiks.rb', line 35

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

.table_prefixObject



39
40
41
# File 'lib/rubiks.rb', line 39

def self.table_prefix
  @table_prefix ||= 'view_'
end

.table_prefix=(prefix) ⇒ Object



43
44
45
# File 'lib/rubiks.rb', line 43

def self.table_prefix=(prefix)
  @table_prefix = prefix
end