Module: ThreeScale::Backend::Configurable

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

#configurationObject



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