Class: Dude::Setup::Toggl
- Inherits:
-
Object
- Object
- Dude::Setup::Toggl
- Defined in:
- lib/dude/setup/toggl.rb
Instance Method Summary collapse
- #call(settings:) ⇒ Object
-
#initialize(prompt) ⇒ Toggl
constructor
A new instance of Toggl.
Constructor Details
#initialize(prompt) ⇒ Toggl
Returns a new instance of Toggl.
6 7 8 |
# File 'lib/dude/setup/toggl.rb', line 6 def initialize(prompt) @prompt = prompt end |
Instance Method Details
#call(settings:) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/dude/setup/toggl.rb', line 10 def call(settings:) settings[:toggl][:token] = setup_token settings[:toggl][:project_name] = setup_project_name settings[:toggl][:workspace_id] = setup_workspace_id settings end |