Class: Strava::Cli::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/auth.rb

Instance Method Summary collapse

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(options = {})
  @access_token = options[:access_token]
  @client_id = options[:client_id]
  @client_secret = options[:client_secret]
  @scope = options[:scope]
end

Instance Method Details

#access_tokenObject



11
12
13
# File 'lib/cli/auth.rb', line 11

def access_token
  @access_token ||= get_access_token
end

#client_idObject



15
16
17
# File 'lib/cli/auth.rb', line 15

def client_id
  @client_id ||= get_client_id
end

#client_secretObject



19
20
21
# File 'lib/cli/auth.rb', line 19

def client_secret
  @client_secret ||= get_client_secret
end