class Jabber::Bytestreams::IqSi

Iq child 'si' for Stream-Initiation

Public Class Methods

new(id=nil, profile=nil, mime_type=nil) click to toggle source
Calls superclass method
# 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

Public Instance Methods

feature() click to toggle source

<feature/> child

result
IqFeature
# File lib/xmpp4r/bytestreams/iq/si.rb, line 73
def feature
  first_element('feature')
end
file() click to toggle source

<file/> child

result
IqSiFile
# File lib/xmpp4r/bytestreams/iq/si.rb, line 66
def file
  first_element('file')
end
id() click to toggle source

Session ID of this stream

# File lib/xmpp4r/bytestreams/iq/si.rb, line 29
def id
  attributes['id']
end
id=(s) click to toggle source

Set Session ID of this stream

# File lib/xmpp4r/bytestreams/iq/si.rb, line 35
def id=(s)
  attributes['id'] = s
end
mime_type() click to toggle source

MIME type of this stream

# File lib/xmpp4r/bytestreams/iq/si.rb, line 41
def mime_type
  attributes['mime-type']
end
mime_type=(s) click to toggle source

Set MIME type of this stream

# File lib/xmpp4r/bytestreams/iq/si.rb, line 47
def mime_type=(s)
  attributes['mime-type'] = s
end
profile() click to toggle source

Stream profile, can indicate file-transfer

# File lib/xmpp4r/bytestreams/iq/si.rb, line 53
def profile
  attributes['profile']
end
profile=(s) click to toggle source

Set stream profile

# File lib/xmpp4r/bytestreams/iq/si.rb, line 59
def profile=(s)
  attributes['profile'] = s
end