Class: JabberAdmin::Commands::SendStanza

Inherits:
Object
  • Object
show all
Defined in:
lib/jabber_admin/commands/send_stanza.rb

Overview

Send a stanza; provide From JID and valid To JID.

Class Method Summary collapse

Class Method Details

.call(callable, from:, to:, stanza:) ⇒ Object

Pass the correct data to the given callable.



16
17
18
# File 'lib/jabber_admin/commands/send_stanza.rb', line 16

def self.call(callable, from:, to:, stanza:)
  callable.call('send_stanza', from: from, to: to, stanza: stanza)
end