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