Module: NewRelic::Base64

Extended by:
Base64
Included in:
Base64
Defined in:
lib/new_relic/base64.rb

Instance Method Summary collapse

Instance Method Details

#decode64(str) ⇒ Object

[View source]

13
14
15
# File 'lib/new_relic/base64.rb', line 13

def decode64(str)
  str.unpack1('m')
end

#encode64(bin) ⇒ Object

[View source]

9
10
11
# File 'lib/new_relic/base64.rb', line 9

def encode64(bin)
  [bin].pack('m')
end

#strict_decode64(str) ⇒ Object

[View source]

21
22
23
# File 'lib/new_relic/base64.rb', line 21

def strict_decode64(str)
  str.unpack1('m0')
end

#strict_encode64(bin) ⇒ Object

[View source]

17
18
19
# File 'lib/new_relic/base64.rb', line 17

def strict_encode64(bin)
  [bin].pack('m0')
end