Created
September 10, 2014 08:08
-
-
Save pewniak747/e6f8bccec803959a3c32 to your computer and use it in GitHub Desktop.
This file contains 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
Success = Struct.new(:data) do | |
def success? | |
true | |
end | |
end | |
Error = Struct.new(:error, :code, :details) do | |
def error_message | |
error.to_s | |
end | |
def success? | |
false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment