Class: RailsTransactionalOutbox::DatadogLatencyReporterScheduler
- Inherits:
-
Object
- Object
- RailsTransactionalOutbox::DatadogLatencyReporterScheduler
- Defined in:
- lib/rails_transactional_outbox/datadog_latency_reporter_scheduler.rb
Instance Method Summary collapse
- #add_to_schedule ⇒ Object
-
#initialize(config: RailsTransactionalOutbox.configuration) ⇒ DatadogLatencyReporterScheduler
constructor
A new instance of DatadogLatencyReporterScheduler.
Constructor Details
#initialize(config: RailsTransactionalOutbox.configuration) ⇒ DatadogLatencyReporterScheduler
Returns a new instance of DatadogLatencyReporterScheduler.
15 16 17 |
# File 'lib/rails_transactional_outbox/datadog_latency_reporter_scheduler.rb', line 15 def initialize(config: RailsTransactionalOutbox.configuration) @config = config end |
Instance Method Details
#add_to_schedule ⇒ Object
19 20 21 |
# File 'lib/rails_transactional_outbox/datadog_latency_reporter_scheduler.rb', line 19 def add_to_schedule find || create end |