Class: JabberDelivery::JabberClient
- Inherits:
-
Object
- Object
- JabberDelivery::JabberClient
- Includes:
- Jabber
- Defined in:
- lib/jabber_delivery/jabber_client.rb
Instance Method Summary collapse
- #deliver(target_jid, message) ⇒ Object
-
#initialize(jid, password) ⇒ JabberClient
constructor
A new instance of JabberClient.
Constructor Details
#initialize(jid, password) ⇒ JabberClient
Returns a new instance of JabberClient.
9 10 11 |
# File 'lib/jabber_delivery/jabber_client.rb', line 9 def initialize(jid, password) @jid, @password = jid, password end |
Instance Method Details
#deliver(target_jid, message) ⇒ Object
13 14 15 |
# File 'lib/jabber_delivery/jabber_client.rb', line 13 def deliver(target_jid, ) client.send((target_jid, )) end |