Method: Parse::Bytes#encode

Defined in:
lib/parse/model/bytes.rb

#encode(str) ⇒ Object

Base64 encode and set the instance contents

Parameters:

  • str

    the string to encode



39
40
41
# File 'lib/parse/model/bytes.rb', line 39

def encode(str)
  @base64 = Base64.encode64(str)
end