Class: SoccersApi::Season

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

Constant Summary collapse

SEASON =
'seasons'.freeze

Class Method Summary collapse

Class Method Details

.by_id(id) ⇒ Object



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

def by_id(id)
  SoccersApi.api_url(
    api_for: SEASON,
    type: "info",
    id_type: 'id',
    id: id
  )
end