Class: Hipbot::Adapters::Telnet::Connection
- Inherits:
-
EM::Connection
- Object
- EM::Connection
- Hipbot::Adapters::Telnet::Connection
- Includes:
- Cache
- Defined in:
- lib/hipbot/adapters/telnet.rb
Instance Method Summary collapse
-
#initialize(adapter) ⇒ Connection
constructor
A new instance of Connection.
- #receive_data(data) ⇒ Object
Methods included from Cache
Constructor Details
#initialize(adapter) ⇒ Connection
Returns a new instance of Connection.
19 20 21 |
# File 'lib/hipbot/adapters/telnet.rb', line 19 def initialize adapter adapter.connection = self end |
Instance Method Details
#receive_data(data) ⇒ Object
27 28 29 30 |
# File 'lib/hipbot/adapters/telnet.rb', line 27 def receive_data data = data.strip Hipbot.react(user, nil, ) end |