module ParamsReady::Marshaller::HashMarshallers::Base64Marshaller
Public Class Methods
canonicalize(definition, string, context, validator)
click to toggle source
# File lib/params_ready/marshaller/hash_marshallers.rb, line 27 def self.canonicalize(definition, string, context, validator) json = Base64.urlsafe_decode64(string) hash = JSON.parse(json) HashMarshaller.canonicalize(definition, hash, context, validator) end
instance()
click to toggle source
# File lib/params_ready/marshaller/hash_marshallers.rb, line 23 def self.instance [String, self] end
marshal(parameter, intent)
click to toggle source
# File lib/params_ready/marshaller/hash_marshallers.rb, line 33 def self.marshal(parameter, intent) hash = HashMarshaller.marshal(parameter, intent) json = JSON.generate(hash) Base64.urlsafe_encode64(json) end