class XMPP::JID

Defined in:

xmpp/jid.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(node : Nil | String, domain, resource) #

[View source]
def self.new(jid : String) #

JID in standard format "node@domain/resource"


[View source]

Instance Method Detail

def bare #

Returns a new JID with resource removed.


[View source]
def domain : String #

[View source]
def full #

Returns Full JID


[View source]
def node : String | Nil #

[View source]
def resource : String | Nil #

[View source]
def to_s #

Turn the JID into a string

  • ""
  • "domain"
  • "node@domain"
  • "domain/resource"
  • "node@domain/resource"

@return [String] the JID as a string


[View source]