module Olap::View

Constants

VERSION

Public Class Methods

default_view_options=(options = {}) click to toggle source

Configure the default view options Can be optionally used to setup options in one place in application,

Example:

>> Olap::View.default_view_options = {no_data: 'Text for no data', undefined: 'Undefined element name', total: 'Total title'}
>> Olap::View.request mdx
=> #<Olap::View::Parse:0x007ffa2b9f60f0 @response=#<Olap::Xmla::Response:0x007ffa2b9f6118 @response={4 ...
# File lib/olap/view.rb, line 24
def self.default_view_options= options = {}
  @@default_view_options.merge!(options)
end
request(mdx, args = {}) click to toggle source
# File lib/olap/view.rb, line 32
def self.request mdx, args = {}
  begin
    response = Olap::Xmla.client.request(mdx, args)
    Olap::View::Parse.new response
  rescue Exception => error
    return Err.new
  end
end
view_options() click to toggle source
# File lib/olap/view.rb, line 28
def self.view_options
  @@default_view_options
end