Class: Ptf::Cli::Task
- Inherits:
-
Thor
- Object
- Thor
- Ptf::Cli::Task
- Defined in:
- lib/ptf/client/task.rb
Instance Method Summary collapse
Instance Method Details
#close(id) ⇒ Object
25 26 27 |
# File 'lib/ptf/client/task.rb', line 25 def close(id) puts Ptf::Commands::Task.close(id) end |
#create ⇒ Object
10 11 12 |
# File 'lib/ptf/client/task.rb', line 10 def create puts Ptf::Commands::Task::Create.create([:title], [:group], [:date], [:estimate]) end |
#edit(id) ⇒ Object
15 16 17 |
# File 'lib/ptf/client/task.rb', line 15 def edit(id) puts Ptf::Commands::Task::Edit.edit(id.to_i) end |