Class: ActiveRecord::SqlAnalyzer::BackgroundProcessor
- Inherits:
-
Object
- Object
- ActiveRecord::SqlAnalyzer::BackgroundProcessor
- Defined in:
- lib/active_record/sql_analyzer/background_processor.rb
Instance Method Summary collapse
- #<<(event) ⇒ Object
-
#initialize ⇒ BackgroundProcessor
constructor
A new instance of BackgroundProcessor.
Constructor Details
#initialize ⇒ BackgroundProcessor
Returns a new instance of BackgroundProcessor.
6 7 8 |
# File 'lib/active_record/sql_analyzer/background_processor.rb', line 6 def initialize @queue = Queue.new end |
Instance Method Details
#<<(event) ⇒ Object
10 11 12 13 |
# File 'lib/active_record/sql_analyzer/background_processor.rb', line 10 def <<(event) processor_thread @queue << event end |