Class: Discorb::AuditLog::Integration

Inherits:
DiscordModel show all
Defined in:
lib/discorb/audit_logs.rb

Overview

Represents an integration in an audit log entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#account -> Discorb::Integration::Account (readonly)

Returns The account of the integration.

Returns:



307
308
309
# File 'lib/discorb/audit_logs.rb', line 307

def 
  @account
end

#id -> Discorb::Snowflake (readonly)

Returns The ID of the integration.

Returns:



301
302
303
# File 'lib/discorb/audit_logs.rb', line 301

def id
  @id
end

#name -> String (readonly)

Returns The name of the integration.

Returns:

  • (String)

    The name of the integration.



305
306
307
# File 'lib/discorb/audit_logs.rb', line 305

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of the integration.

Returns:

  • (Symbol)

    The type of the integration.



303
304
305
# File 'lib/discorb/audit_logs.rb', line 303

def type
  @type
end

Instance Method Details

#inspect -> Object



318
319
320
# File 'lib/discorb/audit_logs.rb', line 318

def inspect
  "#<#{self.class} #{@id}>"
end