Class: Dude::Commands::Track

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/dude/commands/track.rb

Instance Method Summary collapse

Instance Method Details

#call(id:) ⇒ Object



12
13
14
15
# File 'lib/dude/commands/track.rb', line 12

def call(id:)
  @id = id
  Dude::Toggl::StartTimeEntry.new.call(task_title: task_title, project: Dude::SETTINGS.dig(:toggl, :project_name))
end