Class: Discordrb::IntegrationAccount

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

Overview

Integration Account

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ IntegrationAccount

Returns a new instance of IntegrationAccount.


2499
2500
2501
2502
# File 'lib/discordrb/data.rb', line 2499

def initialize(data)
  @name = data['name']
  @id = data['id'].to_i
end

Instance Attribute Details

#idInteger (readonly)

Returns this account's ID.

Returns:


2497
2498
2499
# File 'lib/discordrb/data.rb', line 2497

def id
  @id
end

#nameString (readonly)

Returns this account's name.

Returns:

  • (String)

    this account's name.


2494
2495
2496
# File 'lib/discordrb/data.rb', line 2494

def name
  @name
end