Sha256: ea43f67d1c508f017a111fff235498af8fadce491bb6289ed21da80cb94e0110
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
module SoccersApi class LiveScore class << self require 'rest-client' LIVE_SCORE = 'livescores'.freeze def today SoccersApi.api_url( api_for: LIVE_SCORE, type: "today" ) end def tomorrow SoccersApi.api_url( api_for: LIVE_SCORE, type: "tomorrow" ) end def yesterday SoccersApi.api_url( api_for: LIVE_SCORE, type: "yesterday" ) end def not_started SoccersApi.api_url( api_for: LIVE_SCORE, type: "notstarted" ) end def live SoccersApi.api_url( api_for: LIVE_SCORE, type: "live" ) end def ended SoccersApi.api_url( api_for: LIVE_SCORE, type: "ended" ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soccers_api-1.0.6 | lib/soccers_api/live_score.rb |