def hello
end
/asdf.md Secret
Last active
June 15, 2016 16:34
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