class Ruboty::Todo::Actions::Base
Attributes
todo_list[R]
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/todo/actions/base.rb, line 7 def call @todo_list = ::Ruboty::Todo::List.new(message.robot.brain) end
Private Instance Methods
find_item(arg)
click to toggle source
# File lib/ruboty/todo/actions/base.rb, line 18 def find_item(arg) id = arg.to_i item = todo_list.find(arg.to_i) end
from_owner?()
click to toggle source
# File lib/ruboty/todo/actions/base.rb, line 13 def from_owner? return true if ENV['TODO_OWNERS'] == 'IGNORE_CHECK' ENV['TODO_OWNERS'].split(',').map(&:strip).include?(message.from_name) end