class SecureToken::SecureTokenService::JSONSerializer
Public Instance Methods
deserialize(data)
click to toggle source
# File lib/secure_token.rb, line 49 def deserialize(data) begin JSON.parse(data) rescue JSON::ParserError nil end end
serialize(object)
click to toggle source
# File lib/secure_token.rb, line 45 def serialize(object) object.to_json end