def hello
end
-
-
Save ellismarte/3d29e28e54cd3f444acbd16d7f3cad83 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
def call(api_request) | |
if api_request.class != Hash | |
# log message | |
return "Error" | |
end | |
end |
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
def call(api_request) | |
begin | |
if api_request.class != Hash | |
# log message | |
raise 'Bad Input' | |
end | |
rescue => e | |
# log this? | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment