Class: Discordrb::IntegrationAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/integration.rb

Overview

Integration Account

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#idInteger (readonly)

Returns this account’s ID.

Returns:

  • (Integer)

    this account’s ID.



10
11
12
# File 'lib/discordrb/data/integration.rb', line 10

def id
  @id
end

#nameString (readonly)

Returns this account’s name.

Returns:

  • (String)

    this account’s name.



7
8
9
# File 'lib/discordrb/data/integration.rb', line 7

def name
  @name
end