class FantasyFootballNerd::Client
- FantasyFootballNerd::Client
- Reference
- Object
Defined in:
fantasy_football_nerd/client.crConstant Summary
-
API_KEY =
ENV["FF_NERDS_API_KEY"]? ? ENV["FF_NERDS_API_KEY"] : "test"
-
BASE_URL =
"https://www.fantasyfootballnerd.com/service/"
Class Method Summary
-
.get(endpoint : String, *args)
Sends query to google api endpoint.
Class Method Detail
def self.get(endpoint : String, *args)
#
Sends query to google api endpoint. Appends the api key if it exists in ENV Handles the response from google.