class SleeperRb::Resources::NflState

The NflState resource represents the current state of the NFL (week number, year, etc) as defined by Sleeper.

Attributes

display_week[R]
league_create_season[R]
league_season[R]
leg[R]
previous_season[R]
season[R]
season_start_date[R]
season_type[R]
week[R]

Private Instance Methods

retrieve_values!() click to toggle source
# File lib/sleeper_rb/resources/nfl_state.rb, line 46
def retrieve_values!
  execute_request(URI("#{BASE_URL}/state/nfl"))
end