Class: Discorb::AuditLog::Entry::Changes
- Inherits:
 - 
      DiscordModel
      
        
- Object
 - DiscordModel
 - Discorb::AuditLog::Entry::Changes
 
 
- Defined in:
 - lib/discorb/audit_logs.rb
 
Overview
Represents the changes in an audit log entry.
Instance Attribute Summary collapse
- 
  
    
      #data -> Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute data.
 
Instance Method Summary collapse
- 
  
    
      #[](key) -> Discorb::AuditLog::Entry::Change? 
    
    
  
  
  
  
  
  
  
  
  
    
Get a change with the given key.
 - 
  
    
      #inspect -> Object 
    
    
  
  
  
  
  
  
  
  
  
    
Formats the changes into a string.
 - 
  
    
      #keys -> Array<Symbol> 
    
    
  
  
  
  
  
  
  
  
  
    
Get keys of changes.
 
Methods inherited from DiscordModel
Instance Attribute Details
#data -> Object (readonly)
Returns the value of attribute data.
      271 272 273  | 
    
      # File 'lib/discorb/audit_logs.rb', line 271 def data @data end  | 
  
Instance Method Details
#[](key) -> Discorb::AuditLog::Entry::Change?
Get a change with the given key.
      308 309 310  | 
    
      # File 'lib/discorb/audit_logs.rb', line 308 def [](key) @data[key.to_sym] end  | 
  
#inspect -> Object
Formats the changes into a string.
      287 288 289  | 
    
      # File 'lib/discorb/audit_logs.rb', line 287 def inspect "#<#{self.class} #{@data.length} changes>" end  | 
  
#keys -> Array<Symbol>
Get keys of changes.
      296 297 298  | 
    
      # File 'lib/discorb/audit_logs.rb', line 296 def keys @data.keys end  |