Class: Lita::Updates::Commands::Standup
- Inherits:
-
Object
- Object
- Lita::Updates::Commands::Standup
- Defined in:
- lib/lita/updates/commands/standup.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(robot, redis, user, message) ⇒ Standup
constructor
A new instance of Standup.
Constructor Details
#initialize(robot, redis, user, message) ⇒ Standup
Returns a new instance of Standup.
6 7 8 9 10 11 |
# File 'lib/lita/updates/commands/standup.rb', line 6 def initialize(robot, redis, user, ) @robot = robot @redis = redis @user = user @message = end |
Class Method Details
.call(robot, redis, user, message = nil) ⇒ Object
2 3 4 |
# File 'lib/lita/updates/commands/standup.rb', line 2 def self.call(robot, redis, user, = nil) new(robot, redis, user, ).call end |
Instance Method Details
#call ⇒ Object
13 14 15 16 |
# File 'lib/lita/updates/commands/standup.rb', line 13 def call puts "Starting standup with #{user.mention_name}" if .nil? Lita::Updates::Conversation.new(robot, redis, user, ).call end |