Class: SoccersApi::Leader

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

Constant Summary collapse

LEADER =
'leaders'.freeze

Class Method Summary collapse

Class Method Details

.topassists(season_id) ⇒ Object



25
26
27
28
29
30
31
32
# File 'lib/soccers_api/leader.rb', line 25

def topassists(season_id)
  SoccersApi.api_url(
    api_for: LEADER,
    type: "topassists",
    id_type: 'season_id',
    id: season_id
  )
end

.topcards(season_id) ⇒ Object



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

def topcards(season_id)
  SoccersApi.api_url(
    api_for: LEADER,
    type: "topcards",
    id_type: 'season_id',
    id: season_id
  )
end

.topscorers(season_id) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/soccers_api/leader.rb', line 16

def topscorers(season_id)
  SoccersApi.api_url(
    api_for: LEADER,
    type: "topscorers",
    id_type: 'season_id',
    id: season_id
  )
end