Class Jabber::Roster::RosterItem::Resource |
|
The Resource class embodies a Resource endpoint in Jabber. The resource endpoint it what maintains a status (not an account).
Methods |
Attributes |
[R] | :name | The name of the resource |
[R] | :show | How the resource should be shown |
[R] | :status | The status message of the resource |
Public Class methods |
new(item, name, show, status) src |
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 |
update(show, status) src |
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 |
to_s() src |
Dumps the Resource as a string
return: | [String] The resource encoded as a string. |