Class Jabber::Roster::RosterItem::Resource
In: lib/jabber4r/roster.rb
Parent: Object

The Resource class embodies a Resource endpoint in Jabber. The resource endpoint it what maintains a status (not an account).

Methods

new   to_s   update  

Attributes

name  [R]  The name of the resource
show  [R]  How the resource should be shown
status  [R]  The status message of the resource

Public Class methods

Constructs a new Resource instance

item:[Jabber::Roster::RosterItem] The roster item this resource belongs to
name:[String] The resource name
show:[String] How the resource should be shown
status:[String] The status message of the resource

Public Instance methods

Dumps the Resource as a string

return:[String] The resource encoded as a string.

Updates the state of a resource and notifies listeners.

show:[String] How the resource should be shown
status:[String] The status message of the resource

[Validate]