Sha256: 6a396b6c5c78d33557c1e2dfb6f88b373afafc227b7066f99f3ccf7794c0308a
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
module SoccersApi class Stats class << self require 'rest-client' STATS = 'stats'.freeze def by_match(match_id) SoccersApi.api_url( api_for: STATS, type: "match", id_type: 'match_id', id: match_id ) end def by_league(league_id) SoccersApi.api_url( api_for: STATS, type: "league", id_type: 'league_id', id: league_id ) end def by_season(season_id) SoccersApi.api_url( api_for: STATS, type: "season", id_type: 'season_id', id: season_id ) end def by_team(team_id) SoccersApi.api_url( api_for: STATS, type: "team", id_type: 'team_id', id: team_id ) end def by_player(player_id) SoccersApi.api_url( api_for: STATS, type: "player", id_type: 'player_id', id: player_id ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soccers_api-1.0.6 | lib/soccers_api/stats.rb |