class SoccersApi::Player

Constants

PLAYER

Public Class Methods

by_country(country_id) click to toggle source
# 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) click to toggle source
# 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