Class: JabberDelivery::JabberClient

Inherits:
Object
  • Object
show all
Includes:
Jabber
Defined in:
lib/jabber_delivery/jabber_client.rb

Instance Method Summary collapse

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, message)
  client.send(chat_message(target_jid, message))
end