lib/blather/stanza/iq/si.rb in blather-0.4.16 vs lib/blather/stanza/iq/si.rb in blather-0.5.0
- old
+ new
@@ -31,10 +31,11 @@
# transfer.accept(MyFileReceiver, iq)
# end
#
# @handler :file_transfer
class Si < Iq
+ # @private
NS_SI = 'http://jabber.org/protocol/si'
register :file_transfer, :si, NS_SI
# Overrides the parent method to ensure a si node is created
#
@@ -78,10 +79,11 @@
reply = Stanza::Iq::Si.import super
reply.si.remove
reply
end
+ # Si stanza fragment
class Si < XMPPNode
# Create a new Si::Si object
#
# @param [XML::Node, nil] node a node to inherit from
#
@@ -164,10 +166,11 @@
# @return [Si::Si::Feature]
def feature
Feature.find_or_create self
end
+ # Feature stanza fragment
class Feature < XMPPNode
register :feature, 'http://jabber.org/protocol/feature-neg'
# Create a new Si::Si::Feature object
#
@@ -204,10 +207,11 @@
def x
Stanza::X.find_or_create self
end
end
+ # File stanza fragment
class File < XMPPNode
register :file, 'http://jabber.org/protocol/si/profile/file-transfer'
# Create a new Si::Si::File object
#
@@ -328,10 +332,11 @@
def range
Range.find_or_create self
end
end
+ # Range stanza fragment
class Range < XMPPNode
register :range, 'http://jabber.org/protocol/si/profile/file-transfer'
# Create a new Si::Si::File::Range object
#
@@ -405,6 +410,6 @@
end
end
end
end
end
-end
\ No newline at end of file
+end