Sha256: b363769ed43bafeef60c3b050e31f1afc823b4758d6e18ac54330e7638f58369

Contents?: true

Size: 291 Bytes

Versions: 7

Compression:

Stored size: 291 Bytes

Contents

module Mondrian::REST::Formatters
  module AggregationJSON
    def self.call(result, env)
      add_parents = env['rack.request.query_hash']['parents'] == 'true'
      debug = env['rack.request.query_hash']['debug'] == 'true'

      result.to_h(add_parents, debug).to_json
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mondrian-rest-0.7.6-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.5-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.4-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.3-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.2-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.1-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.0-java lib/mondrian_rest/formatters/aggregation_json.rb