Class: WCC::Notificators
- Inherits:
-
Object
- Object
- WCC::Notificators
- Defined in:
- lib/wcc.rb
Constant Summary collapse
- @@mappings =
{}
Class Method Summary collapse
-
.map(name, klass) ⇒ Object
API method - add a mapping from conf string to class object.
- .mappings ⇒ Object
Class Method Details
.map(name, klass) ⇒ Object
API method - add a mapping from conf string to class object
303 304 305 306 |
# File 'lib/wcc.rb', line 303 def self.map(name, klass) WCC.logger.debug "Register notificator #{klass.inspect} for #{name}" @@mappings[name] = klass end |
.mappings ⇒ Object
308 |
# File 'lib/wcc.rb', line 308 def self.mappings; @@mappings end |