Module: Fantasydata::API::Score

Includes:
Utils
Included in:
Client
Defined in:
lib/fantasydata/api/score.rb

Constant Summary

Constants included from Utils

Utils::API_KEY_CANNOT_CALL_THIS_METHOD, Utils::INVALID_PARAMETER, Utils::MISSING_OR_INVALID_KEY, Utils::MISSING_PARAMETER, Utils::RATE_LIMIT_EXCEEDED, Utils::SUCCESS

Instance Method Summary collapse

Instance Method Details

#scores_by_season(year) ⇒ Object



8
9
10
# File 'lib/fantasydata/api/score.rb', line 8

def scores_by_season year
  objects_from_response(Fantasydata::Score, :get, "/nfl/v2/JSON/Scores/#{year}")
end

#scores_by_week(year, week) ⇒ Object



12
13
14
# File 'lib/fantasydata/api/score.rb', line 12

def scores_by_week year, week
  objects_from_response(Fantasydata::Score, :get, "/nfl/v2/JSON/ScoresByWeek/#{year}/#{week}")
end