Class: SportsApi::Football::TimezoneResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/sports_api/football/resources/timezone.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#get_request, #initialize

Constructor Details

This class inherits a constructor from SportsApi::Resource

Instance Method Details

#listObject



6
7
8
9
# File 'lib/sports_api/football/resources/timezone.rb', line 6

def list
  response = get_request('timezone')
  Collection.from_response(response, type: SportsApi::Football::Timezone)
end