Class Jabber::MUC::UserItem
In: lib/xmpp4r/muc/item.rb
Parent: XMPPElement
XMPPElement ErrorResponse XMPPStanza X IqQuery Message Presence Iq JabberError ComponentAuthenticationFailure ArgumentError SOCKS5Error ServerError NoNameXmlnsRegistered ClientAuthenticationFailure Connection Client Component Client Singleton IdGenerator Comparable JID StandardError REXML::Element Stream IqQuery IqQueryRoster IqQueryBytestreams IqQueryVersion IqQueryRPC IqQueryMUCOwner IqQueryMUCAdmin IqQueryDiscoItems IqQueryDiscoInfo XRosterItem RosterXItem XMPPElement RosterItem StreamHost IqSiFile IqSiFileRange IqSi StreamHostUsed IqFeature C Body HTML UserItem XMUCUserInvite Configuration Items Item IqPubSub Publish Event IqPubSubOwner Subscription Unsubscribe Tune XDataField XDataReported XDataTitle XDataInstructions Feature Item Identity IqVcard XRoster RosterX X XMUC XMUCUser XDelay XData Iq IqCommand SOCKS5Bytestreams SOCKS5BytestreamsTarget SOCKS5BytestreamsInitiator SOCKS5BytestreamsServerStreamHost TCPSocket SOCKS5Socket IBB IBBTarget IBBInitiator Responder SimpleResponder XMLRPC::ParserWriterChooseMixin Client Server XMLRPC::ParseContentType XMLRPC::BasicServer MUCClient SimpleMUCClient MUC::UserItem XMUCUserItem IqQueryMUCAdminItem XParent SubscriptionConfig NodeConfig OwnerNodeConfig EventItems EventItem ServiceHelper NodeHelper Base Anonymous DigestMD5 Plain PubSub::ServiceHelper Helper FileSource Base Bot CallbackList Callback StreamParser Semaphore Helper Responder SOCKS5BytestreamsPeer SOCKS5BytestreamsServer IBBQueueItem Helper MUCBrowser NodeBrowser Helper Responder Helper lib/xmpp4r/message.rb lib/xmpp4r/connection.rb lib/xmpp4r/xmppstanza.rb lib/xmpp4r/iq.rb lib/xmpp4r/callbacks.rb lib/xmpp4r/idgenerator.rb lib/xmpp4r/stream.rb lib/xmpp4r/client.rb lib/xmpp4r/jid.rb lib/xmpp4r/x.rb lib/xmpp4r/streamparser.rb lib/xmpp4r/semaphore.rb lib/xmpp4r/errors.rb lib/xmpp4r/component.rb lib/xmpp4r/presence.rb lib/xmpp4r/xmppelement.rb lib/xmpp4r/query.rb lib/xmpp4r/roster/x/roster.rb lib/xmpp4r/roster/helper/roster.rb lib/xmpp4r/roster/iq/roster.rb Roster lib/xmpp4r/command/iq/command.rb lib/xmpp4r/command/helper/responder.rb Command XParent lib/xmpp4r/bytestreams/iq/si.rb lib/xmpp4r/bytestreams/helper/ibb/initiator.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb lib/xmpp4r/bytestreams/iq/bytestreams.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb lib/xmpp4r/bytestreams/helper/ibb/target.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb lib/xmpp4r/bytestreams/helper/ibb/base.rb Bytestreams lib/xmpp4r/version/helper/responder.rb lib/xmpp4r/version/helper/simpleresponder.rb lib/xmpp4r/version/iq/version.rb Version lib/xmpp4r/feature_negotiation/iq/feature.rb FeatureNegotiation lib/xmpp4r/caps/helper/helper.rb lib/xmpp4r/caps/c.rb Caps lib/xmpp4r/rpc/helper/server.rb lib/xmpp4r/rpc/helper/client.rb lib/xmpp4r/rpc/iq/rpc.rb RPC lib/xmpp4r/xhtml/html.rb XHTML lib/xmpp4r/muc/iq/mucadminitem.rb lib/xmpp4r/muc/x/muc.rb lib/xmpp4r/muc/item.rb lib/xmpp4r/muc/helper/simplemucclient.rb lib/xmpp4r/muc/iq/mucadmin.rb lib/xmpp4r/muc/helper/mucbrowser.rb lib/xmpp4r/muc/x/mucuseritem.rb lib/xmpp4r/muc/x/mucuserinvite.rb lib/xmpp4r/muc/iq/mucowner.rb lib/xmpp4r/muc/helper/mucclient.rb MUC lib/xmpp4r/delay/x/delay.rb Delay lib/xmpp4r/pubsub/children/item.rb lib/xmpp4r/pubsub/children/configuration.rb lib/xmpp4r/pubsub/children/subscription.rb lib/xmpp4r/pubsub/helper/servicehelper.rb lib/xmpp4r/pubsub/children/unsubscribe.rb lib/xmpp4r/pubsub/children/publish.rb lib/xmpp4r/pubsub/children/event.rb lib/xmpp4r/pubsub/iq/pubsub.rb lib/xmpp4r/pubsub/helper/nodebrowser.rb lib/xmpp4r/pubsub/helper/nodehelper.rb lib/xmpp4r/pubsub/children/items.rb lib/xmpp4r/pubsub/children/subscription_config.rb lib/xmpp4r/pubsub/children/node_config.rb PubSub lib/xmpp4r/sasl.rb SASL lib/xmpp4r/httpbinding/client.rb HTTPBinding lib/xmpp4r/tune/helper/helper.rb lib/xmpp4r/tune/tune.rb UserTune lib/xmpp4r/dataforms/x/data.rb Dataforms lib/xmpp4r/bytestreams/helper/filetransfer.rb TransferSource FileTransfer lib/xmpp4r/discovery/iq/discoinfo.rb lib/xmpp4r/discovery/helper/responder.rb lib/xmpp4r/discovery/iq/discoitems.rb Discovery lib/xmpp4r/framework/base.rb lib/xmpp4r/framework/bot.rb Framework lib/xmpp4r/vcard/helper/vcard.rb lib/xmpp4r/vcard/iq/vcard.rb Vcard Jabber dot/m_99_0.png

Don‘t use this. It is the base class (unifying shared attributes) of XMUCUserItem and IqQueryMUCAdminItem

Methods

Public Instance methods

[Source]

     # File lib/xmpp4r/muc/item.rb, line 121
121:       def actors
122:         a = []
123:         each_element('actor') { |xe|
124:           a.push(JID.new(xe.attributes['jid']))
125:         }
126:         a
127:       end

[Source]

     # File lib/xmpp4r/muc/item.rb, line 129
129:       def actors=(a)
130:         delete_elements('actor')
131:         a.each { |jid|
132:           e = add_element('actor')
133:           e.attributes['jid'] = jid.to_s
134:         }
135:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 11
11:       def affiliation
12:         case attributes['affiliation']
13:           when 'admin' then :admin
14:           when 'member' then :member
15:           when 'none' then :none
16:           when 'outcast' then :outcast
17:           when 'owner' then :owner
18:           else nil
19:         end
20:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 22
22:       def affiliation=(v)
23:         case v
24:           when :admin then attributes['affiliation'] = 'admin'
25:           when :member then attributes['affiliation'] = 'member'
26:           when :none then attributes['affiliation'] = 'none'
27:           when :outcast then attributes['affiliation'] = 'outcast'
28:           when :owner then attributes['affiliation'] = 'owner'
29:           else attributes['affiliation'] = nil
30:         end
31:       end

[Source]

     # File lib/xmpp4r/muc/item.rb, line 105
105:       def continue
106:         c = nil
107:         each_element('continue') { |xe| c = xe }
108:         c.nil?
109:       end

[Source]

     # File lib/xmpp4r/muc/item.rb, line 111
111:       def continue=(c)
112:         delete_elements('continue')
113:         add_element('continue') if c
114:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 38
38:       def jid
39:         attributes['jid'].nil? ? nil : JID.new(attributes['jid'])
40:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 42
42:       def jid=(j)
43:         attributes['jid'] = j.nil? ? nil : j.to_s
44:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 51
51:       def nick
52:         attributes['nick']
53:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 55
55:       def nick=(n)
56:         attributes['nick'] = n
57:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 89
89:       def reason
90:         text = nil
91:         each_element('reason') { |xe| text = xe.text }
92:         text
93:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 95
95:       def reason=(s)
96:         delete_elements('reasion')
97:         add_element('reason').text = s
98:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 64
64:       def role
65:         case attributes['role']
66:           when 'moderator' then :moderator
67:           when 'none' then :none
68:           when 'participant' then :participant
69:           when 'visitor' then :visitor
70:           else nil
71:         end
72:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 74
74:       def role=(r)
75:         case r
76:           when :moderator then attributes['role'] = 'moderator'
77:           when :none then attributes['role'] = 'none'
78:           when :participant then attributes['role'] = 'participant'
79:           when :visitor then attributes['role'] = 'visitor'
80:           else attributes['role'] = nil
81:         end
82:       end

[Source]

     # File lib/xmpp4r/muc/item.rb, line 137
137:       def set_actors(a)
138:         self.actors = a
139:         self
140:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 33
33:       def set_affiliation(v)
34:         self.affiliation = v
35:         self
36:       end

[Source]

     # File lib/xmpp4r/muc/item.rb, line 116
116:       def set_continue(c)
117:         self.continue = c
118:         self
119:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 46
46:       def set_jid(j)
47:         self.jid = j
48:         self
49:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 59
59:       def set_nick(n)
60:         self.nick = n
61:         self
62:       end

[Source]

     # File lib/xmpp4r/muc/item.rb, line 100
100:       def set_reason(s)
101:         self.reason = s
102:         self
103:       end

[Source]

    # File lib/xmpp4r/muc/item.rb, line 84
84:       def set_role(r)
85:         self.role = r
86:         self
87:       end

[Validate]