Class: Lita::Adapters::Test::ChatService

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/adapters/test.rb

Overview

Adapter-specific methods exposed through Robot.

Since:

  • 4.6.0

Instance Method Summary collapse

Constructor Details

#initialize(sent_messages) ⇒ ChatService

Returns a new instance of ChatService.

Since:

  • 4.6.0



9
10
11
# File 'lib/lita/adapters/test.rb', line 9

def initialize(sent_messages)
  @sent_messages = sent_messages
end

Instance Method Details

#sent_messagesObject

An array of recorded outgoing messages.

Since:

  • 4.6.0



14
15
16
# File 'lib/lita/adapters/test.rb', line 14

def sent_messages
  @sent_messages.dup
end