Sha256: 9516a377756f5530b656f46b323af9653271446804bf3bc68b8830572543b3af
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
module SoccersApi class Leader class << self require 'rest-client' LEADER = 'leaders'.freeze def topcards(season_id) SoccersApi.api_url( api_for: LEADER, type: "topcards", id_type: 'season_id', id: season_id ) end def topscorers(season_id) SoccersApi.api_url( api_for: LEADER, type: "topscorers", id_type: 'season_id', id: season_id ) end def topassists(season_id) SoccersApi.api_url( api_for: LEADER, type: "topassists", id_type: 'season_id', id: season_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/leader.rb |