Module: ThreeScale::Backend::Configurable
- Included in:
- BackgroundJob, JobFetcher, Logging::Worker, Stats::Aggregator, Statsd, Storage, StorageAsync::Client, StorageSync, Transactor::NotifyBatcher, Transactor::NotifyJob, Worker, WorkerAsync, WorkerMetrics
- Defined in:
- lib/3scale/backend/configurable.rb
Overview
Include this into any class to provide convenient access to the configuration.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 |
# File 'lib/3scale/backend/configurable.rb', line 7 def self.included(base) base.extend(self) end |
Instance Method Details
#configuration ⇒ Object
11 12 13 |
# File 'lib/3scale/backend/configurable.rb', line 11 def configuration ThreeScale::Backend.configuration end |
#configuration=(cfg) ⇒ Object
15 16 17 |
# File 'lib/3scale/backend/configurable.rb', line 15 def configuration=(cfg) ThreeScale::Backend.configuration=(cfg) end |