Module: Fantasydata::API::ByeWeeks

Includes:
Utils
Included in:
Client
Defined in:
lib/fantasydata/api/bye_weeks.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

#bye_weeks_for_season(season) ⇒ Fantasydata::BoxScore

Get bye weeks for the teams during a specified NFL season.

Examples:

bye_weeks_for_season

Fantasydata.bye_weeks_for_season('2015REG')

Raises:

See Also:



18
19
20
# File 'lib/fantasydata/api/bye_weeks.rb', line 18

def bye_weeks_for_season(season)
  objects_from_response(Fantasydata::ByeWeek, :get, "/nfl/v2/JSON/Byes/#{season}")
end