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