mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	 7776b74126
			
		
	
	7776b74126
	
	
	
		
			
			This PR addresses several items listed in our rubocop_todo by implementing the necessary corrections and enhancements. As a result, we are now able to remove the rubocop_todo file entirely, streamlining our codebase and ensuring adherence to our coding standards. fixes: https://linear.app/chatwoot/issue/CW-1806/chore-rubocop-audit
		
			
				
	
	
		
			15 lines
		
	
	
		
			237 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			237 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class Events::Base
 | |
|   attr_accessor :data
 | |
|   attr_reader :name, :timestamp
 | |
| 
 | |
|   def initialize(name, timestamp, data)
 | |
|     @name = name
 | |
|     @data = data
 | |
|     @timestamp = timestamp
 | |
|   end
 | |
| 
 | |
|   def method_name
 | |
|     name.to_s.tr('.', '_')
 | |
|   end
 | |
| end
 |