Class: DBio::UserConnection
- Inherits:
-
Object
- Object
- DBio::UserConnection
- Defined in:
- lib/dbio/user_connection.rb
Overview
Find information about a Discord.Bio Connection.
Instance Method Summary collapse
-
#initialize(data) ⇒ UserConnection
constructor
Initialize the connection.
-
#name ⇒ String
The name as it appears on the User profile.
-
#type ⇒ String
The type of connection, e.g.
Constructor Details
#initialize(data) ⇒ UserConnection
Initialize the connection
4 5 6 |
# File 'lib/dbio/user_connection.rb', line 4 def initialize(data) @data = data end |
Instance Method Details
#name ⇒ String
Returns the name as it appears on the User profile.
15 16 17 |
# File 'lib/dbio/user_connection.rb', line 15 def name @data['name'] end |
#type ⇒ String
The type of connection, e.g. Twitter, YouTube, etc.
10 11 12 |
# File 'lib/dbio/user_connection.rb', line 10 def type @data['type'] end |