Class: Discorb::Presence::ClientStatus

Inherits:
DiscordModel show all
Defined in:
lib/discorb/presence.rb

Overview

Represents a user's client status.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#desktop -> Symbol (readonly)

Returns The desktop status of the user.

Returns:

  • (Symbol)

    The desktop status of the user.



265
266
267
# File 'lib/discorb/presence.rb', line 265

def desktop
  @desktop
end

#desktop? -> Boolean (readonly)

Returns Whether the user is not offline on desktop.

Returns:

  • (Boolean)

    Whether the user is not offline on desktop.



# File 'lib/discorb/presence.rb', line 271

#mobile -> Symbol (readonly)

Returns The mobile status of the user.

Returns:

  • (Symbol)

    The mobile status of the user.



267
268
269
# File 'lib/discorb/presence.rb', line 267

def mobile
  @mobile
end

#mobile? -> Boolean (readonly)

Returns Whether the user is not offline on mobile.

Returns:

  • (Boolean)

    Whether the user is not offline on mobile.



# File 'lib/discorb/presence.rb', line 271

#web -> Symbol (readonly)

Returns The web status of the user.

Returns:

  • (Symbol)

    The web status of the user.



269
270
271
# File 'lib/discorb/presence.rb', line 269

def web
  @web
end

#web? -> Boolean (readonly)

Returns Whether the user is not offline on web.

Returns:

  • (Boolean)

    Whether the user is not offline on web.



# File 'lib/discorb/presence.rb', line 271