Class: Discordrb::IntegrationAccount
- Inherits:
-
Object
- Object
- Discordrb::IntegrationAccount
- Defined in:
- lib/discordrb/data.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.
2792 2793 2794 2795 |
# File 'lib/discordrb/data.rb', line 2792 def initialize(data) @name = data['name'] @id = data['id'].to_i end |