Module: Fantasydata::API::Injury
- Includes:
- Utils
- Included in:
- Client
- Defined in:
- lib/fantasydata/api/injury.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
#injuries_by_year_and_week(year, week) ⇒ Object
8
9
10
|
# File 'lib/fantasydata/api/injury.rb', line 8
def injuries_by_year_and_week year, week
objects_from_response(Fantasydata::Injury, :get, "/nfl/v2/JSON/Injuries/#{year}/#{week}")
end
|
#injuries_by_year_week_team(year, week, team) ⇒ Object
12
13
14
|
# File 'lib/fantasydata/api/injury.rb', line 12
def injuries_by_year_week_team year, week, team
objects_from_response(Fantasydata::Injury, :get, "/nfl/v2/JSON/Injuries/#{year}/#{week}/#{team}")
end
|