Created
February 20, 2019 01:19
-
-
Save abaldwin88/027314835a44143ff27549f3f8a9618c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'httparty' | |
URL = 'http://localhost:3000/posts?search=' | |
def get(search_term) | |
HTTParty.get("#{URL}#{search_term}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment