Module: Fantasydata::API::BoxScore
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
-
#box_score_by_team(season, week, home_team) ⇒ Fantasydata::BoxScore
This method returns individual box scores for a given season, week and home team.
-
#box_scores_active ⇒ Array<Fantasydata::BoxScore>
This method returns box scores for all games that are either in-progress or have been updated within the last 30 minutes.
-
#box_scores_by_week(season, week) ⇒ Array<Fantasydata::BoxScore>
This method returns all box scores for a given season and week.
-
#box_scores_delta(season, week, minutes) ⇒ Array<Fantasydata::BoxScore>
This method returns all box scores for a given season and week, but only returns player stats that have changed in the last X minutes.
-
#box_scores_delta_current_week(minutes) ⇒ Array<Fantasydata::BoxScore>
This method returns all box scores for the current week, but only returns player stats that have changed in the last X minutes.
- #box_scores_final ⇒ Array<Fantasydata::BoxScore>
- #box_scores_live ⇒ Array<Fantasydata::BoxScore>
Instance Method Details
#box_score_by_team(season, week, home_team) ⇒ Fantasydata::BoxScore
This method returns individual box scores for a given season, week and home team.
20 21 22 |
# File 'lib/fantasydata/api/box_score.rb', line 20 def box_score_by_team(season, week, home_team) object_from_response(Fantasydata::BoxScore, :get, "/nfl/v2/JSON/BoxScore/#{season}/#{week}/#{home_team}") end |
#box_scores_active ⇒ Array<Fantasydata::BoxScore>
This method returns box scores for all games that are either in-progress or have been updated within the last 30 minutes.
49 50 51 |
# File 'lib/fantasydata/api/box_score.rb', line 49 def box_scores_active objects_from_response(Fantasydata::BoxScore, :get, "/nfl/v2/JSON/ActiveBoxScores") end |
#box_scores_by_week(season, week) ⇒ Array<Fantasydata::BoxScore>
This method returns all box scores for a given season and week.
36 37 38 |
# File 'lib/fantasydata/api/box_score.rb', line 36 def box_scores_by_week(season, week) objects_from_response(Fantasydata::BoxScore, :get, "/nfl/v2/JSON/BoxScores/#{season}/#{week}") end |
#box_scores_delta(season, week, minutes) ⇒ Array<Fantasydata::BoxScore>
This method returns all box scores for a given season and week, but only returns player stats that have changed in the last X minutes.
65 66 67 |
# File 'lib/fantasydata/api/box_score.rb', line 65 def box_scores_delta(season, week, minutes) objects_from_response(Fantasydata::BoxScore, :get, "/nfl/v2/JSON/BoxScoresDelta/#{season}/#{week}/#{minutes}") end |
#box_scores_delta_current_week(minutes) ⇒ Array<Fantasydata::BoxScore>
This method returns all box scores for the current week, but only returns player stats that have changed in the last X minutes.
79 80 81 |
# File 'lib/fantasydata/api/box_score.rb', line 79 def box_scores_delta_current_week(minutes) objects_from_response(Fantasydata::BoxScore, :get, "/nfl/v2/JSON/RecentlyUpdatedBoxScores/#{minutes}") end |
#box_scores_final ⇒ Array<Fantasydata::BoxScore>
92 93 |
# File 'lib/fantasydata/api/box_score.rb', line 92 def box_scores_final end |
#box_scores_live ⇒ Array<Fantasydata::BoxScore>
104 105 |
# File 'lib/fantasydata/api/box_score.rb', line 104 def box_scores_live end |