Class: Ruboty::Todo::Actions::Add

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/todo/actions/add.rb

Instance Attribute Summary

Attributes inherited from Base

#todo_list

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
# File 'lib/ruboty/todo/actions/add.rb', line 5

def call
  super
  message.reply(todo_list.add(title: message[:title]).format(new_item: true))
end