Sha256: 21dade1cd2639a2dc2433ccf5783c166122cd714d9e4abd09547fc635036dcb9
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
module SoccersApi class Player class << self require 'rest-client' PLAYER = 'players'.freeze def by_id(id) SoccersApi.api_url( api_for: PLAYER, type: "info", id_type: 'id', id: id ) end def by_country(country_id) SoccersApi.api_url( api_for: PLAYER, type: "info", id_type: 'country_id', id: country_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/player.rb |