Sha256: 531a3035bddd8b285113c50b38f158cefa8a41a1dfe185ff250c40094751684a
Contents?: true
Size: 465 Bytes
Versions: 6
Compression:
Stored size: 465 Bytes
Contents
module Mrkt module Faraday class ParamsEncoder class << self def encode(hash) new_hash = hash.transform_values { |v| encode_value(v) } ::Faraday::NestedParamsEncoder.encode(new_hash) end def decode(string) ::Faraday::NestedParamsEncoder.decode(string) end def encode_value(value) value.respond_to?(:join) ? value.join(',') : value end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems