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

#accountDiscorb::Integration::Account (readonly)

Returns The account of the integration.

Returns:



391
392
393
# File 'lib/discorb/audit_logs.rb', line 391

def 
  @account
end

#idDiscorb::Snowflake (readonly)

Returns The ID of the integration.

Returns:



385
386
387
# File 'lib/discorb/audit_logs.rb', line 385

def id
  @id
end

#nameString (readonly)

Returns The name of the integration.

Returns:

  • (String)

    The name of the integration.



389
390
391
# File 'lib/discorb/audit_logs.rb', line 389

def name
  @name
end

#typeSymbol (readonly)

Returns The type of the integration.

Returns:

  • (Symbol)

    The type of the integration.



387
388
389
# File 'lib/discorb/audit_logs.rb', line 387

def type
  @type
end

Instance Method Details

#inspectObject



407
408
409
# File 'lib/discorb/audit_logs.rb', line 407

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