Method: Jabber::JID#to_s
- Defined in:
- lib/vendor/xmpp4r/lib/xmpp4r/jid.rb
#to_s ⇒ Object
Returns a string representation of the JID
-
“”
-
“domain”
-
“node@domain”
-
“domain/resource”
-
“node@domain/resource”
55 56 57 58 59 60 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/jid.rb', line 55 def to_s s = @domain s = "#{@node}@#{s}" if @node s += "/#{@resource}" if @resource return s end |