Last active
March 4, 2020 19:53
-
-
Save kouyaf77/47c1b775f39775c43641f07bbc5d2195 to your computer and use it in GitHub Desktop.
BadExampleClient
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
require 'faraday' | |
class BadExampleClient | |
DEFAULT_URL = 'https://example.com'.freeze | |
def get(url=DEFAULT_URL) | |
Faraday.get url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment