Class: ApiSports::TimezonesResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/api_sports/resources/timezones.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

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/timezones.rb', line 5

def list(**params)
  response = get_request("timezone", params: params)
  Collection.from_response(response, type: Timezone)
end