Class: Discorb::Integration::Account

Inherits:
DiscordModel show all
Defined in:
lib/discorb/integration.rb

Overview

Represents an account for an integration.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#id -> String (readonly)

Returns The ID of the account.

Returns:

  • (String)

    The ID of the account.



103
104
105
# File 'lib/discorb/integration.rb', line 103

def id
  @id
end

#name -> String (readonly)

Returns The name of the account.

Returns:

  • (String)

    The name of the account.



105
106
107
# File 'lib/discorb/integration.rb', line 105

def name
  @name
end