Class: SoccersApi::LiveScore

Inherits:
Object
  • Object
show all
Defined in:
lib/soccers_api/live_score.rb

Constant Summary collapse

LIVE_SCORE =
'livescores'.freeze

Class Method Summary collapse

Class Method Details

.endedObject



42
43
44
45
46
47
# File 'lib/soccers_api/live_score.rb', line 42

def ended
  SoccersApi.api_url(
    api_for: LIVE_SCORE,
    type: "ended"
  )
end

.liveObject



35
36
37
38
39
40
# File 'lib/soccers_api/live_score.rb', line 35

def live
  SoccersApi.api_url(
    api_for: LIVE_SCORE,
    type: "live"
  )
end

.not_startedObject



28
29
30
31
32
33
# File 'lib/soccers_api/live_score.rb', line 28

def not_started
  SoccersApi.api_url(
    api_for: LIVE_SCORE,
    type: "notstarted"
  )
end

.todayObject



7
8
9
10
11
12
# File 'lib/soccers_api/live_score.rb', line 7

def today
  SoccersApi.api_url(
    api_for: LIVE_SCORE,
    type: "today"
  )
end

.tomorrowObject



14
15
16
17
18
19
# File 'lib/soccers_api/live_score.rb', line 14

def tomorrow
  SoccersApi.api_url(
    api_for: LIVE_SCORE,
    type: "tomorrow"
  )
end

.yesterdayObject



21
22
23
24
25
26
# File 'lib/soccers_api/live_score.rb', line 21

def yesterday
  SoccersApi.api_url(
    api_for: LIVE_SCORE,
    type: "yesterday"
  )
end