Class: Xrc::Elements::Ping
- Inherits:
-
REXML::Element
- Object
- REXML::Element
- Xrc::Elements::Ping
- Defined in:
- lib/xrc/elements/ping.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Ping
constructor
A new instance of Ping.
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( = {}) super("iq") attributes["from"] = [:from] attributes["to"] = [:to] attributes["type"] = "get" add(ping) end |