Class: Rubycord::Light::Connection
- Inherits:
-
Object
- Object
- Rubycord::Light::Connection
- 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
-
#id ⇒ String
readonly
The ID of the connected account.
-
#integrations ⇒ Array<Integration>
readonly
The integrations associated with this connection.
-
#name ⇒ String
readonly
The name of the connected account.
-
#revoked ⇒ true, false
(also: #revoked?)
readonly
Whether this connection is revoked.
-
#type ⇒ Symbol
readonly
What type of connection this is (either :twitch or :youtube currently).
Instance Attribute Details
#id ⇒ String (readonly)
Returns the ID of the connected account.
18 19 20 |
# File 'lib/rubycord/light/integrations.rb', line 18 def id @id end |
#integrations ⇒ Array<Integration> (readonly)
Returns the integrations associated with this connection.
21 22 23 |
# File 'lib/rubycord/light/integrations.rb', line 21 def integrations @integrations end |
#name ⇒ String (readonly)
Returns the name of the connected account.
15 16 17 |
# File 'lib/rubycord/light/integrations.rb', line 15 def name @name end |
#revoked ⇒ true, false (readonly) Also known as: revoked?
Returns whether this connection is revoked.
11 12 13 |
# File 'lib/rubycord/light/integrations.rb', line 11 def revoked @revoked end |
#type ⇒ Symbol (readonly)
Returns 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 |