Class: PGMQ::NotifyThrottle
- Inherits:
-
Object
- Object
- PGMQ::NotifyThrottle
- Defined in:
- lib/pgmq/notify_throttle.rb
Overview
Represents the NOTIFY throttle configuration for a queue
Class Method Summary collapse
-
.new(row) ⇒ NotifyThrottle
Creates a new NotifyThrottle from a database row.
Class Method Details
.new(row) ⇒ NotifyThrottle
Creates a new NotifyThrottle from a database row
16 17 18 19 20 21 22 |
# File 'lib/pgmq/notify_throttle.rb', line 16 def new(row, **) super( queue_name: row["queue_name"], throttle_interval_ms: row["throttle_interval_ms"], last_notified_at: row["last_notified_at"] ) end |