Class | Jabber::LastActivity::IqQueryLastActivity |
In: |
lib/xmpp4r/last/iq/last.rb
|
Parent: | IqQuery |
Class for handling Last Activity queries (XEP-0012)
Get the number of seconds since last activity.
With a bare jid, this will return the number of seconds since the client was last seen (offline user query).
With a full jid, this will return the number of seconds that the client has been idle (online user query).
With a server, this will return the server or component‘s uptime in seconds (server / component query).
# File lib/xmpp4r/last/iq/last.rb, line 28 28: def seconds 29: attributes['seconds'] ? attributes['seconds'].to_i : nil 30: end