class DBio::UserConnection

Find information about a Discord.Bio Connection.

Public Class Methods

new(data) click to toggle source

Initialize the connection

# File lib/dbio/user_connection.rb, line 4
def initialize(data)
  @data = data
end

Public Instance Methods

name() click to toggle source

@return [String] the name as it appears on the User profile

# File lib/dbio/user_connection.rb, line 15
def name
  @data['name']
end
type() click to toggle source

The type of connection, e.g. Twitter, YouTube, etc. @return [String] the type of connection

# File lib/dbio/user_connection.rb, line 10
def type
  @data['type']
end