module Shrine::Plugins::UrlsafeSerialization::ClassMethods

  1. lib/shrine/plugins/_urlsafe_serialization.rb

Public Instance methods

urlsafe_deserialize(string)
[show source]
   # File lib/shrine/plugins/_urlsafe_serialization.rb
16 def urlsafe_deserialize(string)
17   urlsafe_serializer.decode(string)
18 end
urlsafe_serialize(hash)
[show source]
   # File lib/shrine/plugins/_urlsafe_serialization.rb
12 def urlsafe_serialize(hash)
13   urlsafe_serializer.encode(hash)
14 end
urlsafe_serializer()
[show source]
   # File lib/shrine/plugins/_urlsafe_serialization.rb
20 def urlsafe_serializer
21   Serializer.new
22 end