Class: ReactiveObservers::DatabaseAdapters::AbstractAdapter
- Inherits:
-
Object
- Object
- ReactiveObservers::DatabaseAdapters::AbstractAdapter
- Defined in:
- lib/reactive_observers/database_adapters/abstract_adapter.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(configuration, klasses) ⇒ AbstractAdapter
constructor
A new instance of AbstractAdapter.
- #start_listening ⇒ Object
- #stop_listening ⇒ Object
Constructor Details
#initialize(configuration, klasses) ⇒ AbstractAdapter
Returns a new instance of AbstractAdapter.
6 7 8 9 |
# File 'lib/reactive_observers/database_adapters/abstract_adapter.rb', line 6 def initialize(configuration, klasses) @configuration = configuration @klasses = klasses end |
Instance Method Details
#start_listening ⇒ Object
11 12 13 |
# File 'lib/reactive_observers/database_adapters/abstract_adapter.rb', line 11 def start_listening @klasses.each { |klass| create_listening_job_for klass } end |
#stop_listening ⇒ Object
15 16 17 |
# File 'lib/reactive_observers/database_adapters/abstract_adapter.rb', line 15 def stop_listening @klasses.each { |klass| stop_listening_job_for klass } end |