Class: GitFit::Auth::Garmin::Orchestrator
- Inherits:
-
Object
- Object
- GitFit::Auth::Garmin::Orchestrator
- Includes:
- GhHelpers
- Defined in:
- lib/git_fit/auth/garmin.rb
Instance Attribute Summary collapse
-
#generated_secret ⇒ Object
readonly
Returns the value of attribute generated_secret.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options, config) ⇒ Orchestrator
constructor
A new instance of Orchestrator.
Methods included from GhHelpers
Constructor Details
#initialize(options, config) ⇒ Orchestrator
Returns a new instance of Orchestrator.
33 34 35 36 |
# File 'lib/git_fit/auth/garmin.rb', line 33 def initialize(, config) @options = || {} @config = config end |
Instance Attribute Details
#generated_secret ⇒ Object (readonly)
Returns the value of attribute generated_secret.
38 39 40 |
# File 'lib/git_fit/auth/garmin.rb', line 38 def generated_secret @generated_secret end |
Instance Method Details
#call ⇒ Object
40 41 42 43 44 45 |
# File 'lib/git_fit/auth/garmin.rb', line 40 def call mode = selected_mode token = mode == :sync ? sync_token : sso_token(mode) persist(token) nil end |