Sha256: e358acc5399754641ac164d1cb9b1b62409396f3ae1748857e2ebdbfdcbafca0
Contents?: true
Size: 392 Bytes
Versions: 7
Compression:
Stored size: 392 Bytes
Contents
module ApiAuth module Helpers # :nodoc: # Remove the ending new line character added by default def b64_encode(string) Base64.encode64(string).strip end # Capitalizes the keys of a hash def capitalize_keys(hsh) capitalized_hash = {} hsh.each_pair {|k,v| capitalized_hash[k.to_s.upcase] = v } capitalized_hash end end end
Version data entries
7 entries across 7 versions & 1 rubygems