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 |
: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 |
new(item, name, show, status) |
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) |
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() |
Dumps the Resource as a string
return: | [String] The resource encoded as a string. |