Class: RubyCord::Client::User::Status

Inherits:
DiscordModel show all
Defined in:
lib/rubycord/client/user.rb

Overview

Represents a user's client status.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#desktopSymbol (readonly)

Returns The desktop status of the user.

Returns:

  • (Symbol)

    The desktop status of the user.



41
42
43
# File 'lib/rubycord/client/user.rb', line 41

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/rubycord/client/user.rb', line 47

#mobileSymbol (readonly)

Returns The mobile status of the user.

Returns:

  • (Symbol)

    The mobile status of the user.



43
44
45
# File 'lib/rubycord/client/user.rb', line 43

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/rubycord/client/user.rb', line 47

#webSymbol (readonly)

Returns The web status of the user.

Returns:

  • (Symbol)

    The web status of the user.



45
46
47
# File 'lib/rubycord/client/user.rb', line 45

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/rubycord/client/user.rb', line 47