class Lita::Adapters::Test
Attributes
sent_messages[RW]
An array of recorded outgoing messages.
Public Class Methods
new(robot)
click to toggle source
Calls superclass method
Lita::Adapter::new
# File lib/lita/adapters/test.rb, line 19 def initialize(robot) super self.sent_messages = [] end
Public Instance Methods
chat_service()
click to toggle source
Adapter-specific methods available via {Robot#chat_service}.
# File lib/lita/adapters/test.rb, line 26 def chat_service ChatService.new(sent_messages) end
send_messages(_target, strings)
click to toggle source
Records outgoing messages.
# File lib/lita/adapters/test.rb, line 31 def send_messages(_target, strings) sent_messages.concat(strings) end