class Blather::Stanza::Presence::Subscription
[RFC 3921 Section 8 - Integration of Roster
Items and Presence
Subscriptions](xmpp.org/rfcs/rfc3921.html#rfc.section.8)
Blather
handles subscription request/response through this class. It provides a set of helper methods to quickly transform the stanza into a response.
@handler :subscription
Public Class Methods
new(to = nil, type = nil)
click to toggle source
Create a new Subscription
stanza
@param [Blather::JID, to_s] to the JID
to subscribe to @param [Symbol, nil] type the subscription type
Calls superclass method
Blather::Stanza::Presence::new
# File lib/blather/stanza/presence/subscription.rb, line 21 def self.new(to = nil, type = nil) node = super() node.to = to node.type = type node end