Module: Strava::V2::AuthRequest
- Included in:
- Connection
- Defined in:
- lib/strava/v2/auth_request.rb
Instance Method Summary collapse
Instance Method Details
#login(email, password) ⇒ Object
10 11 12 13 14 |
# File 'lib/strava/v2/auth_request.rb', line 10 def login(email, password) auth = Auth.new(self.fetch(login_path(), {:email => email, :password => password})) self.(auth.athlete.id, auth.token) return auth end |
#login_path ⇒ Object
6 7 8 |
# File 'lib/strava/v2/auth_request.rb', line 6 def login_path 'authentication/login' end |