class SoccersApi::Country

Constants

COUNTRY

Public Class Methods

all() click to toggle source
# File lib/soccers_api/country.rb, line 11
def all
  countries = {}
  (2).times do |no|
    countries << SoccersApi.api_url(api_for: COUNTRY, type: "list")
  end
  countries
end
by_id(id) click to toggle source
# File lib/soccers_api/country.rb, line 19
def by_id(id)
  SoccersApi.api_url(
    api_for: COUNTRY,
    type: "info",
    id_type: 'id',
    id: id
  )
end