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

#current_weekObject



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

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

#last_completed_weekObject



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

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

#upcoming_weekObject



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

def upcoming_week
  integer_from_response(:get, '/nfl/v2/JSON/UpcomingWeek')
end