Iq child 'si' for Stream-Initiation
# File lib/xmpp4r/bytestreams/iq/si.rb, line 19 def initialize(id=nil, profile=nil, mime_type=nil) super() self.id = id self.profile = profile self.mime_type = mime_type end
<feature/> child
# File lib/xmpp4r/bytestreams/iq/si.rb, line 73 def feature first_element('feature') end
<file/> child
# File lib/xmpp4r/bytestreams/iq/si.rb, line 66 def file first_element('file') end
Session ID of this stream
# File lib/xmpp4r/bytestreams/iq/si.rb, line 29 def id attributes['id'] end
Set Session ID of this stream
# File lib/xmpp4r/bytestreams/iq/si.rb, line 35 def id=(s) attributes['id'] = s end
MIME type of this stream
# File lib/xmpp4r/bytestreams/iq/si.rb, line 41 def mime_type attributes['mime-type'] end
Set MIME type of this stream
# File lib/xmpp4r/bytestreams/iq/si.rb, line 47 def mime_type=(s) attributes['mime-type'] = s end
Stream profile, can indicate file-transfer
# File lib/xmpp4r/bytestreams/iq/si.rb, line 53 def profile attributes['profile'] end
Set stream profile
# File lib/xmpp4r/bytestreams/iq/si.rb, line 59 def profile=(s) attributes['profile'] = s end