### Home Classes Methods

### In Files

- lib/xmpp4r/muc/item.rb

### Parent

Jabber::XMPPElement

### Methods

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

### Files

- CHANGELOG
- COPYING
- LICENSE
- README.rdoc
- README_ruby19.txt

### Class/Module Index

Quicksearch

- Jabber
- Jabber::ArgumentError
- Jabber::Bytestreams
- Jabber::Bytestreams::IBB
- Jabber::Bytestreams::IBBInitiator
- Jabber::Bytestreams::IBBQueueItem
- Jabber::Bytestreams::IBBTarget
- Jabber::Bytestreams::IqQueryBytestreams
- Jabber::Bytestreams::IqSi
- Jabber::Bytestreams::IqSiFile
- Jabber::Bytestreams::IqSiFileRange
- Jabber::Bytestreams::SOCKS5Bytestreams
- Jabber::Bytestreams::SOCKS5BytestreamsInitiator
- Jabber::Bytestreams::SOCKS5BytestreamsPeer
- Jabber::Bytestreams::SOCKS5BytestreamsServer
- Jabber::Bytestreams::SOCKS5BytestreamsServerStreamHost
- Jabber::Bytestreams::SOCKS5BytestreamsTarget
- Jabber::Bytestreams::SOCKS5Socket
- Jabber::Bytestreams::StreamHost
- Jabber::Bytestreams::StreamHostUsed
- Jabber::Callback
- Jabber::CallbackList
- Jabber::Caps
- Jabber::Caps::C
- Jabber::Caps::Helper
- Jabber::Client
- Jabber::ClientAuthenticationFailure
- Jabber::Command
- Jabber::Command::IqCommand
- Jabber::Command::Responder
- Jabber::Component
- Jabber::ComponentAuthenticationFailure
- Jabber::Connection
- Jabber::Connection::SSLSocketUTF8
- Jabber::Dataforms
- Jabber::Dataforms::XData
- Jabber::Dataforms::XDataField
- Jabber::Dataforms::XDataInstructions
- Jabber::Dataforms::XDataReported
- Jabber::Dataforms::XDataTitle
- Jabber::Delay
- Jabber::Delay::XDelay
- Jabber::Discovery
- Jabber::Discovery::Feature
- Jabber::Discovery::Helper
- Jabber::Discovery::Identity
- Jabber::Discovery::IqQueryDiscoInfo
- Jabber::Discovery::IqQueryDiscoItems
- Jabber::Discovery::Item
- Jabber::Discovery::Responder
- Jabber::EntityTime
- Jabber::EntityTime::IqTime
- Jabber::EntityTime::Responder
- Jabber::ErrorResponse
- Jabber::FeatureNegotiation
- Jabber::FeatureNegotiation::IqFeature
- Jabber::FileTransfer
- Jabber::FileTransfer::FileSource
- Jabber::FileTransfer::Helper
- Jabber::FileTransfer::TransferSource
- Jabber::Framework
- Jabber::Framework::Base
- Jabber::Framework::Bot
- Jabber::HTTPBinding
- Jabber::HTTPBinding::Client
- Jabber::IdGenerator
- Jabber::InvalidChatState
- Jabber::Iq
- Jabber::IqQuery
- Jabber::JID
- Jabber::JabberError
- Jabber::LastActivity
- Jabber::LastActivity::Helper
- Jabber::LastActivity::IqQueryLastActivity
- Jabber::MUC
- Jabber::MUC::IqQueryMUCAdmin
- Jabber::MUC::IqQueryMUCAdminItem
- Jabber::MUC::IqQueryMUCOwner
- Jabber::MUC::MUCBrowser
- Jabber::MUC::MUCClient
- Jabber::MUC::SimpleMUCClient
- Jabber::MUC::UserItem
- Jabber::MUC::XMUC
- Jabber::MUC::XMUCUser
- Jabber::MUC::XMUCUserInvite
- Jabber::MUC::XMUCUserItem
- Jabber::Message
- Jabber::NoNameXmlnsRegistered
- Jabber::NotConnected
- Jabber::Observable
- Jabber::Observable::Contact
- Jabber::Observable::PubSub
- Jabber::Observable::PubSub::AlreadySet
- Jabber::Observable::PubSub::NoService
- Jabber::Observable::Subscriptions
- Jabber::Presence
- Jabber::PubSub
- Jabber::PubSub::Configuration
- Jabber::PubSub::Event
- Jabber::PubSub::EventItem
- Jabber::PubSub::EventItems
- Jabber::PubSub::IqPubSub
- Jabber::PubSub::IqPubSubOwner
- Jabber::PubSub::Item
- Jabber::PubSub::Items
- Jabber::PubSub::NodeBrowser
- Jabber::PubSub::NodeConfig
- Jabber::PubSub::NodeHelper
- Jabber::PubSub::OAuthPubSubStreamHelper
- Jabber::PubSub::OAuthServiceHelper
- Jabber::PubSub::OwnerNodeConfig
- Jabber::PubSub::Publish
- Jabber::PubSub::Retract
- Jabber::PubSub::ServiceHelper
- Jabber::PubSub::Subscription
- Jabber::PubSub::SubscriptionConfig
- Jabber::PubSub::Unsubscribe
- Jabber::RPC
- Jabber::RPC::Client
- Jabber::RPC::IqQueryRPC
- Jabber::RPC::Server
- Jabber::Reliable
- Jabber::Reliable::Connection
- Jabber::Reliable::Listener
- Jabber::Roster
- Jabber::Roster::Helper
- Jabber::Roster::Helper::RosterItem
- Jabber::Roster::IqQueryRoster
- Jabber::Roster::RosterItem
- Jabber::Roster::RosterX
- Jabber::Roster::RosterXItem
- Jabber::Roster::XRoster
- Jabber::Roster::XRosterItem
- Jabber::SASL
- Jabber::SASL::Anonymous
- Jabber::SASL::Base
- Jabber::SASL::DigestMD5
- Jabber::SASL::Plain
- Jabber::SOCKS5Error
- Jabber::Semaphore
- Jabber::ServerDisconnected
- Jabber::Stream
- Jabber::Stream::ThreadBlock
- Jabber::StreamParser
- Jabber::Test
- Jabber::Test::ListenerMocker
- Jabber::UserLocation
- Jabber::UserLocation::Helper
- Jabber::UserLocation::Location
- Jabber::UserTune
- Jabber::UserTune::Helper
- Jabber::UserTune::Tune
- Jabber::Vcard
- Jabber::Vcard::Helper
- Jabber::Vcard::IqVcard
- Jabber::Version
- Jabber::Version::IqQueryVersion
- Jabber::Version::Responder
- Jabber::Version::SimpleResponder
- Jabber::X
- Jabber::XHTML
- Jabber::XHTML::Body
- Jabber::XHTML::HTML
- Jabber::XMPPElement
- Jabber::XMPPStanza
- Jabber::XParent
- REXML
- REXML::Element
- REXML::IOSource
- XMLRPC
- XMLRPC::Create
- Base64
- ObservableThing
- QObserver
- ThreadStore

No matching classes.

# Jabber::MUC::UserItem

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

### Public Instance Methods

actors() click to toggle source

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

actors=(a) click to toggle source

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

affiliation() click to toggle source

    # File lib/xmpp4r/muc/item.rb, line 11
    def affiliation
      case attributes['affiliation']
        when 'admin' then :admin
        when 'member' then :member
        when 'none' then :none
        when 'outcast' then :outcast
        when 'owner' then :owner
        else nil
      end
    end

affiliation=(v) click to toggle source

    # File lib/xmpp4r/muc/item.rb, line 22
    def affiliation=(v)
      case v
        when :admin then attributes['affiliation'] = 'admin'
        when :member then attributes['affiliation'] = 'member'
        when :none then attributes['affiliation'] = 'none'
        when :outcast then attributes['affiliation'] = 'outcast'
        when :owner then attributes['affiliation'] = 'owner'
        else attributes['affiliation'] = nil
      end
    end

continue() click to toggle source

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

continue=(c) click to toggle source

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

jid() click to toggle source

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

jid=(j) click to toggle source

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

nick() click to toggle source

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

nick=(n) click to toggle source

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

reason() click to toggle source

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

reason=(s) click to toggle source

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

role() click to toggle source

    # File lib/xmpp4r/muc/item.rb, line 64
    def role
      case attributes['role']
        when 'moderator' then :moderator
        when 'none' then :none
        when 'participant' then :participant
        when 'visitor' then :visitor
        else nil
      end
    end

role=(r) click to toggle source

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

set_actors(a) click to toggle source

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

set_affiliation(v) click to toggle source

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

set_continue(c) click to toggle source

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

set_jid(j) click to toggle source

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

set_nick(n) click to toggle source

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

set_reason(s) click to toggle source

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

set_role(r) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.