class Shrine::Plugins::DownloadEndpoint::Serializer

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

Methods

Public Instance

  1. dump
  2. load

Public Instance methods

dump (data)
[show source]
# File lib/shrine/plugins/download_endpoint.rb, line 218
def dump(data)
  base64_encode(json_encode(data))
end
load (data)
[show source]
# File lib/shrine/plugins/download_endpoint.rb, line 222
def load(data)
  json_decode(base64_decode(data))
end