Class: Lita::Updates::Commands::Standup

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/updates/commands/standup.rb

Class Method Summary collapse

Instance Method Summary collapse

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, message)
  @robot   = robot
  @redis   = redis
  @user    = user
  @message = 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, message = nil)
  new(robot, redis, user, message).call
end

Instance Method Details

#callObject



13
14
15
16
# File 'lib/lita/updates/commands/standup.rb', line 13

def call
  puts "Starting standup with #{user.mention_name}" if message.nil?
  Lita::Updates::Conversation.new(robot, redis, user, message).call
end