Class: Lita::Adapters::Line
- Inherits:
-
Adapter
- Object
- Adapter
- Lita::Adapters::Line
- Defined in:
- lib/lita/adapters/line.rb,
lib/lita/adapters/line/client.rb
Defined Under Namespace
Classes: Client
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
10 11 12 |
# File 'lib/lita/adapters/line.rb', line 10 def client @client end |
Instance Method Details
#chat_service ⇒ Object
18 19 20 |
# File 'lib/lita/adapters/line.rb', line 18 def chat_service @client end |
#run ⇒ Object
12 13 14 15 16 |
# File 'lib/lita/adapters/line.rb', line 12 def run return if client @client = Client.new(config) client.run end |
#send_messages(target, messages) ⇒ Object
22 23 24 |
# File 'lib/lita/adapters/line.rb', line 22 def (target, ) client.(target.room, ) end |
#shut_down ⇒ Object
26 27 28 |
# File 'lib/lita/adapters/line.rb', line 26 def shut_down client.stop end |