Class: GoodData::Bricks::ParamsInspectMiddleware
- Inherits:
-
Middleware
- Object
- Middleware
- GoodData::Bricks::ParamsInspectMiddleware
- Defined in:
- lib/gooddata/bricks/middleware/params_inspect_middleware.rb
Instance Attribute Summary
Attributes inherited from Middleware
Instance Method Summary collapse
Methods inherited from Middleware
Methods included from Utils
Constructor Details
This class inherits a constructor from GoodData::Bricks::Middleware
Instance Method Details
#call(params) ⇒ Object
14 15 16 17 18 |
# File 'lib/gooddata/bricks/middleware/params_inspect_middleware.rb', line 14 def call(params) inspect = params[:inspect_params] || params['inspect_params'] puts 'Inspecting Parameters ...' puts JSON.pretty_generate(params) if inspect.to_b end |