class XMPP::JID

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(node, domain, resource) #

def self.new(jid : String) #

JID in standard format "node@domain/resource"


Instance Method Detail

def bare #

Returns a new JID with resource removed.


def domain : String #

def full #

Returns Full JID


def node : String? #

def resource : String? #

def to_s #

Turn the JID into a string

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

@return [String] the JID as a string