Class: Xrc::Elements::Ping

Inherits:
REXML::Element
  • Object
show all
Defined in:
lib/xrc/elements/ping.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Ping

Returns a new instance of Ping.



4
5
6
7
8
9
10
# File 'lib/xrc/elements/ping.rb', line 4

def initialize(options = {})
  super("iq")
  attributes["from"] = options[:from]
  attributes["to"] = options[:to]
  attributes["type"] = "get"
  add(ping)
end