Class: Strava::Cli::Auth
- Inherits:
-
Object
- Object
- Strava::Cli::Auth
- Defined in:
- lib/cli/auth.rb
Instance Method Summary collapse
- #access_token ⇒ Object
- #client_id ⇒ Object
- #client_secret ⇒ Object
-
#initialize(options = {}) ⇒ Auth
constructor
A new instance of Auth.
Constructor Details
#initialize(options = {}) ⇒ Auth
Returns a new instance of Auth.
4 5 6 7 8 9 |
# File 'lib/cli/auth.rb', line 4 def initialize( = {}) @access_token = [:access_token] @client_id = [:client_id] @client_secret = [:client_secret] @scope = [:scope] end |
Instance Method Details
#access_token ⇒ Object
11 12 13 |
# File 'lib/cli/auth.rb', line 11 def access_token @access_token ||= get_access_token end |
#client_id ⇒ Object
15 16 17 |
# File 'lib/cli/auth.rb', line 15 def client_id @client_id ||= get_client_id end |
#client_secret ⇒ Object
19 20 21 |
# File 'lib/cli/auth.rb', line 19 def client_secret @client_secret ||= get_client_secret end |