Class: Seahorse::Client::Plugins::ParamConversion::Handler

Inherits:
Handler
  • Object
show all
Defined in:
lib/seahorse/client/plugins/param_conversion.rb

Instance Attribute Summary

Attributes inherited from Handler

#handler

Instance Method Summary collapse

Methods inherited from Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object



18
19
20
21
22
23
# File 'lib/seahorse/client/plugins/param_conversion.rb', line 18

def call(context)
  if input = context.operation.input
    context.params = ParamConverter.convert(input, context.params)
  end
  @handler.call(context)
end