Class: Ruboty::Handlers::SlackTakeTurns

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/handlers/slack_take_turns.rb

Overview

manage a duty that members in a slack channel take turns on

Constant Summary collapse

NAMESPACE =
"slack_take_turns"

Instance Method Summary collapse

Instance Method Details

#assign(message) ⇒ Object



71
72
73
# File 'lib/ruboty/handlers/slack_take_turns.rb', line 71

def assign(message)
  Ruboty::SlackTakeTurns::Actions::Assign.new(message).call
end

#current(message) ⇒ Object



55
56
57
# File 'lib/ruboty/handlers/slack_take_turns.rb', line 55

def current(message)
  Ruboty::SlackTakeTurns::Actions::Current.new(message).call
end

#exclude(message) ⇒ Object



63
64
65
# File 'lib/ruboty/handlers/slack_take_turns.rb', line 63

def exclude(message)
  Ruboty::SlackTakeTurns::Actions::Exclude.new(message).call
end

#force(message) ⇒ Object



51
52
53
# File 'lib/ruboty/handlers/slack_take_turns.rb', line 51

def force(message)
  Ruboty::SlackTakeTurns::Actions::Force.new(message).call
end

#include(message) ⇒ Object



67
68
69
# File 'lib/ruboty/handlers/slack_take_turns.rb', line 67

def include(message)
  Ruboty::SlackTakeTurns::Actions::Include.new(message).call
end

#members(message) ⇒ Object



47
48
49
# File 'lib/ruboty/handlers/slack_take_turns.rb', line 47

def members(message)
  Ruboty::SlackTakeTurns::Actions::Members.new(message).call
end

#next(message) ⇒ Object



59
60
61
# File 'lib/ruboty/handlers/slack_take_turns.rb', line 59

def next(message)
  Ruboty::SlackTakeTurns::Actions::Next.new(message).call
end