Module: Strava::Api::Config
Overview
Configuration module for the Strava API client.
This module manages configuration settings for the API client, including the API endpoint URL and access token for authentication.
Constant Summary collapse
- ATTRIBUTES =
Returns List of configurable attributes.
%i[ endpoint access_token ].freeze
Instance Method Summary collapse
-
#reset ⇒ void
Reset configuration to default values.
Instance Method Details
#reset ⇒ void
This method returns an undefined value.
Reset configuration to default values.
Sets the endpoint to the default Strava API v3 URL and clears the access token.
39 40 41 42 |
# File 'lib/strava/api/config.rb', line 39 def reset self.endpoint = 'https://www.strava.com/api/v3' self.access_token = nil end |