Class: ApiSports::CountriesResource
- Defined in:
- lib/api_sports/resources/countries.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
#get_request, #get_single_resource, #handle_response, #initialize
Constructor Details
This class inherits a constructor from ApiSports::Resource
Instance Method Details
#list(**params) ⇒ Object
5 6 7 8 |
# File 'lib/api_sports/resources/countries.rb', line 5 def list(**params) response = get_request("countries", params: params) Collection.from_response(response, type: Country) end |