Class: GoodData::Bricks::DecodeParamsMiddleware

Inherits:
Middleware
  • Object
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
# File 'lib/gooddata/bricks/middleware/decode_params_middleware.rb', line 13

def call(params)
  params = params.to_hash

  @app.call(GoodData::Helpers.decode_params(params))
end