Files
chatwoot/lib/events/base.rb
Sojan Jose 7776b74126 chore: Apply fixes for items in rubocop_todo [CW-1806] (#8864)
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
2024-02-07 13:36:04 +04:00

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