Skip to content

Instantly share code, notes, and snippets.

@ellismarte
Last active June 15, 2016 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellismarte/3d29e28e54cd3f444acbd16d7f3cad83 to your computer and use it in GitHub Desktop.
Save ellismarte/3d29e28e54cd3f444acbd16d7f3cad83 to your computer and use it in GitHub Desktop.
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