Sha256: 52aa47bb089d32e4b73150561a913b397e1dd72ed5975ce083d3a661d5209e4f
Contents?: true
Size: 713 Bytes
Versions: 10
Compression:
Stored size: 713 Bytes
Contents
module Seahorse module Client module Plugins # @seahorse.client.option [Boolean] :convert_params (true) # When `true`, an attempt is made to coerce request parameters # into the required types. class ParamConversion < Plugin option(:convert_params, true) def add_handlers(handlers, config) handlers.add(Handler, step: :initialize) if config.convert_params end class Handler < Client::Handler def call(context) context.params = ParamConverter.convert( context.operation.input, context.params) @handler.call(context) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems