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.



2792
2793
2794
2795
# File 'lib/discordrb/data.rb', line 2792

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

Instance Attribute Details

#idInteger (readonly)

Returns this account's ID.

Returns:



2790
2791
2792
# File 'lib/discordrb/data.rb', line 2790

def id
  @id
end

#nameString (readonly)

Returns this account's name.

Returns:

  • (String)

    this account's name.



2787
2788
2789
# File 'lib/discordrb/data.rb', line 2787

def name
  @name
end