Class: Discordrb::IntegrationAccount
- Inherits:
-
Object
- Object
- Discordrb::IntegrationAccount
- Defined in:
- lib/discordrb/data/integration.rb
Overview
Integration Account
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
This account’s ID.
-
#name ⇒ String
readonly
This account’s name.
Instance Method Summary collapse
-
#initialize(data) ⇒ IntegrationAccount
constructor
A new instance of IntegrationAccount.
Constructor Details
#initialize(data) ⇒ IntegrationAccount
Returns a new instance of IntegrationAccount.
12 13 14 15 |
# File 'lib/discordrb/data/integration.rb', line 12 def initialize(data) @name = data['name'] @id = data['id'].to_i end |