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

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

Overview

A Data stanza

Constant Summary

Constants inherited from Blather::Stanza::Iq::Ibb

NS_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::Ibb

#reply

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, #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

#dataNokogiri::XML::Element

Find data node

Returns:

  • (Nokogiri::XML::Element)


53
54
55
# File 'lib/blather/stanza/iq/ibb.rb', line 53

def data
  find_first('ns:data', :ns => NS_IBB)
end

#sidString

Get the sid of the file transfer

Returns:

  • (String)


60
61
62
# File 'lib/blather/stanza/iq/ibb.rb', line 60

def sid
  data['sid']
end