Class: Botfly::MessageResponder

Inherits:
Responder show all
Extended by:
Forwardable
Defined in:
lib/botfly/responder/message_responder.rb

Instance Attribute Summary

Attributes inherited from Responder

#bot, #callback, #callback_type, #id

Instance Method Summary collapse

Methods inherited from Responder

#callback_with, #initialize, #method_missing

Methods included from CommonResponderMethods

#remove, #tell

Constructor Details

This class inherits a constructor from Botfly::Responder

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Botfly::Responder

Instance Method Details

#reply(text) ⇒ Object



5
6
7
8
9
10
# File 'lib/botfly/responder/message_responder.rb', line 5

def reply(text)
  Botfly.logger.debug("RSP: MessageResponder#reply called")
  msg = Jabber::Message.new(@from, text)
  msg.type = :chat
  @client.send(msg)
end