Class: SoccersApi::Round
- Inherits:
-
Object
- Object
- SoccersApi::Round
- Defined in:
- lib/soccers_api/round.rb
Constant Summary collapse
- ROUND =
'rounds'.freeze
Class Method Summary collapse
Class Method Details
.by_id(id) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/soccers_api/round.rb', line 7 def by_id(id) SoccersApi.api_url( api_for: ROUND, type: "info", id_type: 'id', id: id ) end |
.by_season(season_id) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/soccers_api/round.rb', line 16 def by_season(season_id) SoccersApi.api_url( api_for: ROUND, type: "byseason", id_type: 'season_id', id: season_id ) end |