| Class Jabber::JID |
|
The Jabber ID class is used to hold a parsed jabber identifier (account+host+resource)
| Methods |
| Attributes |
| host | [RW] | The host name (or IP address) |
| node | [RW] | The node (account) |
| resource | [RW] | The resource id |
| Public Class methods |
| to_jid(id) |
| new(id) |
Constructs a JID from the supplied string of the format:
node@host[/resource] (e.g. "rich_kilmer@jabber.com/laptop")
| id: | [String] The jabber id string to parse |
| Public Instance methods |
| ==(other) |
Evalutes whether the node, resource and host are the same
| other: | [Jabber::JID] The other jabber id |
| return: | [Boolean] True if they match |
| same_account?(other) |
| strip_resource() |
Removes the resource from this JID
| to_s() |
Returns the string ("node@host/resource") representation of this JID
| return: | [String] String form of JID |
| hash() |