Created
February 22, 2020 12:11
-
-
Save Brunomm/ba9de5fcf4e007b46561d2cfbeffaeeb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@base = "gqljb25kaXRpb26iT1KmZ3JvdXBzkoKpY29uZGl0aW9uom9yp2ZpbHRlcnORg6Njb2yqYmlydGhfZGF0ZaNvcGWlbW9udGijdmFsoTKCqWNvbmRpdGlvbqJvcqdmaWx0ZXJzkYOjY29srXNoYXJlX2NhcGl0YWyjb3BlsGdyZWF0ZXJvcmVxdWFsdG-jdmFspjUwMC4wMA" | |
def example_error | |
MessagePack.unpack( Base64.decode64( @base ) ) | |
end | |
def example_success | |
MessagePack.unpack( Base64.urlsafe_decode64( @base ) ) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment