Skip to content

Instantly share code, notes, and snippets.

@ellismarte
Last active June 15, 2016 16:34
def hello 
end
def call(api_request)
if api_request.class != Hash
# log message
return "Error"
end
end
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