Class Jabber::Bytestreams::IqSi
In: lib/xmpp4r/bytestreams/iq/si.rb
Parent: XMPPElement

Iq child ‘si’ for Stream-Initiation

Methods

feature   file   id   id=   mime_type   mime_type=   new   profile   profile=  

Public Class methods

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 19
19:       def initialize(id=nil, profile=nil, mime_type=nil)
20:         super()
21: 
22:         self.id = id
23:         self.profile = profile
24:         self.mime_type = mime_type
25:       end

Public Instance methods

<feature/> child

result:[IqFeature]

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 73
73:       def feature
74:         first_element('feature')
75:       end

<file/> child

result:[IqSiFile]

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 66
66:       def file
67:         first_element('file')
68:       end

Session ID of this stream

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 29
29:       def id
30:         attributes['id']
31:       end

Set Session ID of this stream

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 35
35:       def id=(s)
36:         attributes['id'] = s
37:       end

MIME type of this stream

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 41
41:       def mime_type
42:         attributes['mime-type']
43:       end

Set MIME type of this stream

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 47
47:       def mime_type=(s)
48:         attributes['mime-type'] = s
49:       end

Stream profile, can indicate file-transfer

[Source]

    # File lib/xmpp4r/bytestreams/iq/si.rb, line 53
53:       def profile
54:         attributes['profile']
55:       end

Set stream profile

[Source]

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

[Validate]