Sha256: e2ec44a17250cc82a2811c2c23aa179bdde4f08426e5f77218949ce297022a0f

Contents?: true

Size: 265 Bytes

Versions: 8

Compression:

Stored size: 265 Bytes

Contents

module Mondrian::REST::Formatters
  module AggregationJSON
    def self.call(result, env)
      params = env['api.endpoint'].params
      add_parents = params['parents']
      debug = params['debug']

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mondrian-rest-1.0.4-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-1.0.3-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-1.0.2-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-1.0.1-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-1.0.0-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.9-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.8-java lib/mondrian_rest/formatters/aggregation_json.rb
mondrian-rest-0.7.7-java lib/mondrian_rest/formatters/aggregation_json.rb