Sha256: 715dcacaf2e7062303d80ec34a8c5bc70910f4abc9a8d10d4b7dd66a63938585

Contents?: true

Size: 267 Bytes

Versions: 51

Compression:

Stored size: 267 Bytes

Contents

module HTTParty
  module Utils
    def self.stringify_keys(hash)
      return hash.transform_keys(&:to_s) if hash.respond_to?(:transform_keys)

      hash.each_with_object({}) do |(key, value), new_hash|
        new_hash[key.to_s] = value
      end
    end
  end
end

Version data entries

51 entries across 26 versions & 4 rubygems

Version Path
paynow_sdk-0.1.7 vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.6/vendor/cache/ruby/2.7.0/gems/httparty-0.18.1/lib/httparty/utils.rb
paynow_sdk-0.1.7 vendor/cache/ruby/2.7.0/gems/httparty-0.18.1/lib/httparty/utils.rb
httparty-0.18.1 lib/httparty/utils.rb
httparty-0.18.0 lib/httparty/utils.rb
httparty-0.17.3 lib/httparty/utils.rb
httparty-responsibly-0.17.1 lib/httparty/utils.rb
httparty-0.17.1 lib/httparty/utils.rb
httparty-responsibly-0.17.0.r1 lib/httparty/utils.rb
httparty-0.17.0 lib/httparty/utils.rb
httparty-0.16.4 lib/httparty/utils.rb
httparty-0.16.3 lib/httparty/utils.rb