Module: Fantasydata::API::Week

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

#week_currentObject



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

def week_current
  integer_from_response(:get, '/nfl/v2/JSON/CurrentWeek')
end

#week_last_completedObject



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

def week_last_completed
  integer_from_response(:get, '/nfl/v2/JSON/LastCompletedWeek')
end

#week_upcomingObject



16
17
18
# File 'lib/fantasydata/api/week.rb', line 16

def week_upcoming
  integer_from_response(:get, '/nfl/v2/XML/UpcomingWeek')
end