Sha256: dad486b07b17ecee622e7c4b50d3c390c610fd1e9ea2359edcfd4344ab7dbed9
Contents?: true
Size: 715 Bytes
Versions: 4
Compression:
Stored size: 715 Bytes
Contents
require 'fantasydata/api/utils' module Fantasydata module API module Team include Fantasydata::API::Utils def teams_active objects_from_response(Fantasydata::TeamDetail, :get, "/nfl/v2/JSON/Teams") end def teams_by_year year objects_from_response(Fantasydata::TeamDetail, :get, "/nfl/v2/JSON/Teams/#{year}") end def team_game_stats_by_year_and_week year, week objects_from_response(Fantasydata::TeamGameStat, :get, "nfl/v2/JSON/TeamGameStats/#{year}/#{week}") end def team_game_stats_by_season year objects_from_response(Fantasydata::TeamSeasonStat, :get, "nfl/v2/JSON/TeamSeasonStats/#{year}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fantasydata-0.2.2 | lib/fantasydata/api/team.rb |
fantasydata-0.2.1 | lib/fantasydata/api/team.rb |
fantasydata-0.2.0 | lib/fantasydata/api/team.rb |
fantasydata-0.0.2 | lib/fantasydata/api/team.rb |