Class Jabber::JID
In: lib/jabber4r/jid.rb
Parent: Object

The Jabber ID class is used to hold a parsed jabber identifier (account+host+resource)

Methods

==   hash   new   same_account?   strip_resource   to_jid   to_s  

Attributes

host  [RW]  The host name (or IP address)
node  [RW]  The node (account)
resource  [RW]  The resource id

Public Class methods

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

Evalutes whether the node, resource and host are the same

other:[Jabber::JID] The other jabber id
return:[Boolean] True if they match

Override hash to hash based on the to_s method

Removes the resource from this JID

Returns the string ("node@host/resource") representation of this JID

return:[String] String form of JID

[Validate]