Module: PrizePicks::Api::Endpoints::Entries
- Included in:
- PrizePicks::Api::Endpoints
- Defined in:
- lib/prizepicks/api/endpoints/entries.rb
Constant Summary collapse
- ENDPOINT =
'/v1/entries'
Instance Method Summary collapse
Instance Method Details
#entries(options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/prizepicks/api/endpoints/entries.rb', line 8 def entries( = {}) raise ArgumentError, 'email is required' unless @email raise ArgumentError, 'password is required' unless @password resp = request(:get, ENDPOINT, ) Collection.from_response(resp, type: Entry) end |