Class: Strava::V2::Connection
- Inherits:
-
Object
- Object
- Strava::V2::Connection
- Includes:
- HTTParty, BaseConnection, AuthRequest, EffortsRequest, SegmentsRequest
- Defined in:
- lib/strava/v2/connection.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
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
Methods included from BaseConnection
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
17 18 19 |
# File 'lib/strava/v2/connection.rb', line 17 def token @token end |
#user_id ⇒ Object (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 (user_id, token) @user_id = user_id @token = token end |