module Soccerama::Client::Countries

Public Instance Methods

countries(country_id = nil, options: nil) click to toggle source
# File lib/soccerama/client/countries.rb, line 5
def countries(country_id = nil, options: nil)
  endpoint = '/countries'
  endpoint += "/#{id}" if country_id
  get(endpoint, { include: options }).fetch('data')
end