Sha256: 8b5f3ab281eb827331bfabc66462444d77283f6ee7cf28d59fc9e7acdc600bea

Contents?: true

Size: 681 Bytes

Versions: 76

Compression:

Stored size: 681 Bytes

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require_relative 'base_middleware'

module GoodData
  module Bricks
    # Converts params from encoded hash to decoded hash
    class DecodeParamsMiddleware < Bricks::Middleware
      def call(params)
        params = params.to_hash

        # Decode and resolve reference parameters in gd_encoded_params
        @app.call(GoodData::Helpers.decode_params(params, resolve_reference_params: true, convert_pipe_delimited_params: true))
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
gooddata-2.3.1-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.3.1 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.3.0-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.3.0 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.2.0-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.2.0 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.19-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.19 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.17-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.17 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.15-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.15 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.14-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.14 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.13-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.13 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.12-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.12 lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.11-java lib/gooddata/bricks/middleware/decode_params_middleware.rb
gooddata-2.1.11 lib/gooddata/bricks/middleware/decode_params_middleware.rb