Class: Lita::Adapters::Test
- Inherits:
-
Lita::Adapter
- Object
- Lita::Adapter
- Lita::Adapters::Test
- Defined in:
- lib/lita/adapters/test.rb
Overview
An adapter for testing Lita and Lita plugins.
Defined Under Namespace
Classes: ChatService
Constant Summary
Constants inherited from Lita::Adapter
Lita::Adapter::REQUIRED_METHODS
Instance Attribute Summary
Attributes inherited from Lita::Adapter
Attributes included from Configurable
Instance Method Summary collapse
-
#chat_service ⇒ Object
Adapter-specific methods available via Robot#chat_service.
-
#initialize(robot) ⇒ Test
constructor
A new instance of Test.
-
#send_messages(_target, strings) ⇒ Object
Records outgoing messages.
Methods inherited from Lita::Adapter
#config, #join, #log, #mention_format, #part, require_config, #roster, #run, #set_topic, #shut_down, t, translate, #translate
Methods included from Namespace
Methods included from Configurable
Constructor Details
#initialize(robot) ⇒ Test
Returns a new instance of Test.
19 20 21 22 23 |
# File 'lib/lita/adapters/test.rb', line 19 def initialize(robot) super self. = [] end |
Instance Method Details
#chat_service ⇒ Object
Adapter-specific methods available via Robot#chat_service.
26 27 28 |
# File 'lib/lita/adapters/test.rb', line 26 def chat_service ChatService.new() end |
#send_messages(_target, strings) ⇒ Object
Records outgoing messages.
31 32 33 |
# File 'lib/lita/adapters/test.rb', line 31 def (_target, strings) .concat(strings) end |