Class Jabber::MUC::XMUCUserItem
In: lib/xmpp4r/muc/x/mucuseritem.rb
Parent: XMPPElement
Message Presence XMPPStanza Iq Singleton IdGenerator XMPPElement X IqQuery Error Connection Client Component Client Comparable JID RuntimeError AuthenticationFailure ErrorException NoNameXmlnsRegistered SOCKS5Error REXML::Element Stream SOCKS5Bytestreams SOCKS5BytestreamsTarget SOCKS5BytestreamsInitiator XMPPElement StreamHost IqSiFileRange IqSiFile StreamHostUsed IqSi XRosterItem RosterItem IqFeature XMUCUserItem XMUCUserInvite IqPubSub Items Subscription IqPubSubOwner Item Event Feature Item Identity XDataField XDataReported XDataTitle XDataInstructions IqVcard SOCKS5BytestreamsServerStreamHost TCPSocket SOCKS5Socket IqQuery IqQueryBytestreams IqQueryVersion IqQueryRoster IqQueryMUCOwner IqQueryRPC IqQueryDiscoItems IqQueryDiscoInfo IBB IBBTarget IBBInitiator Responder SimpleResponder Iq IqCommand RosterXItem XRoster RosterX X XMUCUser XMUC XDelay XData XParent MUCClient SimpleMUCClient XMLRPC::ParserWriterChooseMixin Client Server XMLRPC::ParseContentType XMLRPC::BasicServer Base DigestMD5 Plain ServiceHelper NodeHelper FileSource CallbackList Callback Semaphore StreamParser SOCKS5BytestreamsPeer SOCKS5BytestreamsServer IBBQueueItem Responder Helper MUCBrowser NodeBrowser Helper Helper lib/xmpp4r/authenticationfailure.rb lib/xmpp4r/xmppstanza.rb lib/xmpp4r/callbacks.rb lib/xmpp4r/idgenerator.rb lib/xmpp4r/connection.rb lib/xmpp4r/iq.rb lib/xmpp4r/jid.rb lib/xmpp4r/errorexception.rb lib/xmpp4r/client.rb lib/xmpp4r/stream.rb lib/xmpp4r/semaphore.rb lib/xmpp4r/streamparser.rb lib/xmpp4r/x.rb lib/xmpp4r/error.rb lib/xmpp4r/component.rb lib/xmpp4r/query.rb lib/xmpp4r/xmppelement.rb lib/xmpp4r/message.rb lib/xmpp4r/presence.rb lib/xmpp4r/bytestreams/helper/ibb/initiator.rb lib/xmpp4r/bytestreams/iq/si.rb lib/xmpp4r/bytestreams/iq/bytestreams.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb lib/xmpp4r/bytestreams/helper/ibb/base.rb lib/xmpp4r/bytestreams/helper/ibb/target.rb Bytestreams XParent lib/xmpp4r/version/iq/version.rb lib/xmpp4r/version/helper/responder.rb lib/xmpp4r/version/helper/simpleresponder.rb Version lib/xmpp4r/command/iq/command.rb lib/xmpp4r/command/helper/responder.rb Command lib/xmpp4r/roster/helper/roster.rb lib/xmpp4r/roster/iq/roster.rb lib/xmpp4r/roster/x/roster.rb Roster lib/xmpp4r/feature_negotiation/iq/feature.rb FeatureNegotiation lib/xmpp4r/muc/x/muc.rb lib/xmpp4r/muc/helper/mucclient.rb lib/xmpp4r/muc/x/mucuseritem.rb lib/xmpp4r/muc/helper/mucbrowser.rb lib/xmpp4r/muc/x/mucuserinvite.rb lib/xmpp4r/muc/iq/mucowner.rb lib/xmpp4r/muc/helper/simplemucclient.rb MUC lib/xmpp4r/rpc/helper/server.rb lib/xmpp4r/rpc/helper/client.rb lib/xmpp4r/rpc/iq/rpc.rb RPC lib/xmpp4r/sasl.rb SASL lib/xmpp4r/delay/x/delay.rb Delay lib/xmpp4r/pubsub/stanzas/subscription.rb lib/xmpp4r/pubsub/helper/servicehelper.rb lib/xmpp4r/pubsub/stanzas/item.rb lib/xmpp4r/pubsub/helper/nodehelper.rb lib/xmpp4r/pubsub/iq/pubsub.rb lib/xmpp4r/pubsub/stanzas/event.rb lib/xmpp4r/pubsub/helper/nodebrowser.rb lib/xmpp4r/pubsub/stanzas/items.rb PubSub lib/xmpp4r/httpbinding/client.rb HTTPBinding lib/xmpp4r/bytestreams/helper/filetransfer.rb TransferSource FileTransfer lib/xmpp4r/discovery/iq/discoinfo.rb lib/xmpp4r/discovery/iq/discoitems.rb Discovery lib/xmpp4r/dataforms/x/data.rb Dataforms lib/xmpp4r/vcard/helper/vcard.rb lib/xmpp4r/vcard/iq/vcard.rb Vcard Jabber dot/m_80_0.png

Methods

actors   actors=   affiliation   affiliation=   continue   continue=   jid   jid=   new   nick   nick=   reason   reason=   role   role=   set_actors   set_affiliation   set_continue   set_jid   set_nick   set_reason   set_role  

Public Class methods

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 10
10:       def initialize(affiliation=nil, role=nil, jid=nil)
11:         super()
12:         set_affiliation(affiliation)
13:         set_role(role)
14:         set_jid(jid)
15:       end

Public Instance methods

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 127
127:       def actors
128:         a = []
129:         each_element('actor') { |xe|
130:           a.push(JID::new(xe.attributes['jid']))
131:         }
132:         a
133:       end

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 135
135:       def actors=(a)
136:         delete_elements('actor')
137:         a.each { |jid|
138:           e = add_element('actor')
139:           e.attributes['jid'] = jid.to_s
140:         }
141:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 17
17:       def affiliation
18:         case attributes['affiliation']
19:           when 'admin' then :admin
20:           when 'member' then :member
21:           when 'none' then :none
22:           when 'outcast' then :outcast
23:           when 'owner' then :owner
24:           else nil
25:         end
26:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 28
28:       def affiliation=(v)
29:         case v
30:           when :admin then attributes['affiliation'] = 'admin'
31:           when :member then attributes['affiliation'] = 'member'
32:           when :none then attributes['affiliation'] = 'none'
33:           when :outcast then attributes['affiliation'] = 'outcast'
34:           when :owner then attributes['affiliation'] = 'owner'
35:           else attributes['affiliation'] = nil
36:         end
37:       end

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 111
111:       def continue
112:         c = nil
113:         each_element('continue') { |xe| c = xe }
114:         c.nil?
115:       end

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 117
117:       def continue=(c)
118:         delete_elements('continue')
119:         add_element('continue') if c
120:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 44
44:       def jid
45:         attributes['jid'].nil? ? nil : JID::new(attributes['jid'])
46:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 48
48:       def jid=(j)
49:         attributes['jid'] = j.nil? ? nil : j.to_s
50:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 57
57:       def nick
58:         attributes['nick']
59:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 61
61:       def nick=(n)
62:         attributes['nick'] = n
63:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 95
95:       def reason
96:         text = nil
97:         each_element('reason') { |xe| text = xe.text }
98:         text
99:       end

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 101
101:       def reason=(s)
102:         delete_elements('reasion')
103:         add_element('reason').text = s
104:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 70
70:       def role
71:         case attributes['role']
72:           when 'moderator' then :moderator
73:           when 'none' then :none
74:           when 'participant' then :participant
75:           when 'visitor' then :visitor
76:           else nil
77:         end
78:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 80
80:       def role=(r)
81:         case r
82:           when :moderator then attributes['role'] = 'moderator'
83:           when :none then attributes['role'] = 'none'
84:           when :participant then attributes['role'] = 'participant'
85:           when :visitor then attributes['role'] = 'visitor'
86:           else attributes['role'] = nil
87:         end
88:       end

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 143
143:       def set_actors(a)
144:         self.actors = a
145:         self
146:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 39
39:       def set_affiliation(v)
40:         self.affiliation = v
41:         self
42:       end

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 122
122:       def set_continue(c)
123:         self.continue = c
124:         self
125:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 52
52:       def set_jid(j)
53:         self.jid = j
54:         self
55:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 65
65:       def set_nick(n)
66:         self.nick = n
67:         self
68:       end

[Source]

     # File lib/xmpp4r/muc/x/mucuseritem.rb, line 106
106:       def set_reason(s)
107:         self.reason = s
108:         self
109:       end

[Source]

    # File lib/xmpp4r/muc/x/mucuseritem.rb, line 90
90:       def set_role(r)
91:         self.role = r
92:         self
93:       end

[Validate]