Module: PrizePicks::Api::Endpoints::SignIn

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

Constant Summary collapse

ENDPOINT =
'/users/sign_in'

Instance Method Summary collapse

Instance Method Details

#sign_inObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/prizepicks/api/endpoints/sign_in.rb', line 9

def 
  resp = request(:post, ENDPOINT, {
    user: {
      email: @email,
      password: @password,
    },
  })

  User.new(resp)
end