class Shrine::Plugins::UrlsafeSerialization::Serializer

  1. lib/shrine/plugins/_urlsafe_serialization.rb
Superclass: Object

Methods

Public Instance

  1. decode
  2. encode

Public Instance methods

decode(data)
[show source]
   # File lib/shrine/plugins/_urlsafe_serialization.rb
66 def decode(data)
67   json_decode(base64_decode(data))
68 end
encode(data)
[show source]
   # File lib/shrine/plugins/_urlsafe_serialization.rb
62 def encode(data)
63   base64_encode(json_encode(data))
64 end