Class: Rubycord::Light::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/rubycord/light/integrations.rb

Overview

A connection of your Discord account to a particular other service (currently, Twitch and YouTube)

Instance Attribute Summary collapse

Instance Attribute Details

#idString (readonly)

Returns the ID of the connected account.

Returns:

  • (String)

    the ID of the connected account



18
19
20
# File 'lib/rubycord/light/integrations.rb', line 18

def id
  @id
end

#integrationsArray<Integration> (readonly)

Returns the integrations associated with this connection.

Returns:

  • (Array<Integration>)

    the integrations associated with this connection



21
22
23
# File 'lib/rubycord/light/integrations.rb', line 21

def integrations
  @integrations
end

#nameString (readonly)

Returns the name of the connected account.

Returns:

  • (String)

    the name of the connected account



15
16
17
# File 'lib/rubycord/light/integrations.rb', line 15

def name
  @name
end

#revokedtrue, false (readonly) Also known as: revoked?

Returns whether this connection is revoked.

Returns:

  • (true, false)

    whether this connection is revoked



11
12
13
# File 'lib/rubycord/light/integrations.rb', line 11

def revoked
  @revoked
end

#typeSymbol (readonly)

Returns what type of connection this is (either :twitch or :youtube currently).

Returns:

  • (Symbol)

    what type of connection this is (either :twitch or :youtube currently)



8
9
10
# File 'lib/rubycord/light/integrations.rb', line 8

def type
  @type
end