Class: GoodData::Bricks::DecodeParamsMiddleware

Inherits:
Middleware show all
Defined in:
lib/gooddata/bricks/middleware/decode_params_middleware.rb

Overview

Converts params from encoded hash to decoded hash

Instance Attribute Summary

Attributes inherited from Middleware

#app

Instance Method Summary collapse

Methods inherited from Middleware

#initialize, #load_defaults

Methods included from Utils

#returning

Constructor Details

This class inherits a constructor from GoodData::Bricks::Middleware

Instance Method Details

#call(params) ⇒ Object



13
14
15
16
17
18
# File 'lib/gooddata/bricks/middleware/decode_params_middleware.rb', line 13

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