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?

Instance Attribute Details

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

Returns The account of the integration.

Returns:



357
358
359
# File 'lib/discorb/audit_logs.rb', line 357

def 
  @account
end

#id -> Discorb::Snowflake (readonly)

Returns The ID of the integration.

Returns:



351
352
353
# File 'lib/discorb/audit_logs.rb', line 351

def id
  @id
end

#name -> String (readonly)

Returns The name of the integration.

Returns:

  • (String)

    The name of the integration.



355
356
357
# File 'lib/discorb/audit_logs.rb', line 355

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of the integration.

Returns:

  • (Symbol)

    The type of the integration.



353
354
355
# File 'lib/discorb/audit_logs.rb', line 353

def type
  @type
end

Instance Method Details

#inspect -> Object



371
372
373
# File 'lib/discorb/audit_logs.rb', line 371

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