Method: Mutx::Custom::Params#initialize
- Defined in:
- lib/mutx/custom/params.rb
#initialize ⇒ Params
This class is used to provide to user in his code access to the custom params sent from Mutx
9 10 11 12 13 14 15 16 |
# File 'lib/mutx/custom/params.rb', line 9 def initialize params = ENV || {} @custom_params = if params["mutx_custom_params"] JSON.parse(params["mutx_custom_params"]) else params end end |