module NewRelic::Base64
Public Instance Methods
decode64(str)
click to toggle source
# File lib/new_relic/base64.rb, line 13 def decode64(str) str.unpack1('m') end
encode64(bin)
click to toggle source
# File lib/new_relic/base64.rb, line 9 def encode64(bin) [bin].pack('m') end
strict_decode64(str)
click to toggle source
# File lib/new_relic/base64.rb, line 21 def strict_decode64(str) str.unpack1('m0') end
strict_encode64(bin)
click to toggle source
# File lib/new_relic/base64.rb, line 17 def strict_encode64(bin) [bin].pack('m0') end