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
287 288 289 290 |
# File 'lib/wcc.rb', line 287 def self.map(name, klass) WCC.logger.debug "Register notificator #{klass.inspect} for #{name}" @@mappings[name] = klass end |
.mappings ⇒ Object
292 |
# File 'lib/wcc.rb', line 292 def self.mappings; @@mappings end |