Class: Strava::V2::Connection

Inherits:
Object
  • Object
show all
Includes:
HTTParty, BaseConnection, AuthRequest, EffortsRequest, SegmentsRequest
Defined in:
lib/strava/v2/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SegmentsRequest

#segments_and_efforts_for_ride, #segments_and_efforts_for_ride_path

Methods included from EffortsRequest

#efforts_path, #segments_for_ride

Methods included from AuthRequest

#login, #login_path

Methods included from BaseConnection

#fetch

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



17
18
19
# File 'lib/strava/v2/connection.rb', line 17

def token
  @token
end

#user_idObject (readonly)

Returns the value of attribute user_id.



17
18
19
# File 'lib/strava/v2/connection.rb', line 17

def user_id
  @user_id
end

Instance Method Details

#set_authorized_user(user_id, token) ⇒ Object



21
22
23
24
# File 'lib/strava/v2/connection.rb', line 21

def set_authorized_user(user_id, token)
  @user_id = user_id
  @token = token
end