Sha256: f008573fc986ffca928ab6cb5883e6ea67e18bcbacbdf6e30bad1076f28e4e5b
Contents?: true
Size: 333 Bytes
Versions: 3
Compression:
Stored size: 333 Bytes
Contents
module ApiAuth module Helpers # :nodoc: def b64_encode(string) Base64.strict_encode64(string) 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
jmoses_api-auth-1.0.5 | lib/api_auth/helpers.rb |
api-auth-1.1.0 | lib/api_auth/helpers.rb |
jmoses_api-auth-1.0.4 | lib/api_auth/helpers.rb |