Class: Blather::Stanza::Iq::Ibb

Inherits:
Blather::Stanza::Iq show all
Defined in:
lib/blather/stanza/iq/ibb.rb

Overview

# In-Band Bytestreams Stanza

[XEP-0047: In-Band Bytestreams](xmpp.org/extensions/xep-0047.html)

Direct Known Subclasses

Close, Data, Open

Defined Under Namespace

Classes: Close, Data, Open

Constant Summary collapse

NS_IBB =
'http://jabber.org/protocol/ibb'

Constants inherited from Blather::Stanza::Iq

VALID_TYPES

Constants inherited from XMPPNode

XMPPNode::BASE_NAMES

Instance Attribute Summary

Attributes inherited from Blather::Stanza

#handler_hierarchy

Instance Method Summary collapse

Methods inherited from Blather::Stanza::Iq

#error?, #get?, import, new, #reply!, #result?, #set?, #type=

Methods inherited from Blather::Stanza

#as_error, #error?, #from, #from=, handler_list, #id, #id=, #initialize, next_id, register, #reply!, #to, #to=, #type, #type=

Methods inherited from XMPPNode

class_from_registration, #decorate, decorator_modules, import, new, parse, register, #to_stanza

Constructor Details

This class inherits a constructor from Blather::Stanza

Instance Method Details

#replyObject

Overrides the parent method to remove open, close and data nodes



18
19
20
21
22
23
24
# File 'lib/blather/stanza/iq/ibb.rb', line 18

def reply
  reply = super
  reply.remove_children :open
  reply.remove_children :close
  reply.remove_children :data
  reply
end