Class: Activerecord::Oracle::Queue::Watcher
- Inherits:
-
Module
- Object
- Module
- Activerecord::Oracle::Queue::Watcher
- Defined in:
- lib/activerecord/oracle/queue/watcher.rb
Overview
Class Activerecord::Oracle::Queue::Watcher provides behaviour for watching queues
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Instance Method Summary collapse
- #included(receiver) ⇒ Object
-
#initialize(queue_name) ⇒ Watcher
constructor
A new instance of Watcher.
Constructor Details
#initialize(queue_name) ⇒ Watcher
Returns a new instance of Watcher.
11 12 13 14 15 |
# File 'lib/activerecord/oracle/queue/watcher.rb', line 11 def initialize(queue_name) @queue_name = queue_name super() end |
Instance Method Details
#included(receiver) ⇒ Object
17 18 19 20 |
# File 'lib/activerecord/oracle/queue/watcher.rb', line 17 def included(receiver) receiver.extend ClassMethods receiver.const_set :QueueName, @queue_name end |