Module: PrizePicks::Api::Endpoints::Leagues

Included in:
PrizePicks::Api::Endpoints
Defined in:
lib/prizepicks/api/endpoints/leagues.rb

Constant Summary collapse

ENDPOINT =
'/v1/leagues'

Instance Method Summary collapse

Instance Method Details

#leagues(options = {}) ⇒ Object



8
9
10
11
# File 'lib/prizepicks/api/endpoints/leagues.rb', line 8

def leagues(options = {})
  resp = request(:get, ENDPOINT, options)
  Collection.from_response(resp, type: League)
end