Module: CommandTower::Messaging::NotificationTypes
- Defined in:
- app/services/command_tower/messaging/notification_types.rb,
app/services/command_tower/messaging/notification_types/error.rb,
app/services/command_tower/messaging/notification_types/registry.rb,
app/services/command_tower/messaging/notification_types/declaration.rb,
app/services/command_tower/messaging/notification_types/not_found_error.rb,
app/services/command_tower/messaging/notification_types/catalog_category.rb,
app/services/command_tower/messaging/notification_types/duplicate_type_error.rb,
app/services/command_tower/messaging/notification_types/declaration_validator.rb,
app/services/command_tower/messaging/notification_types/sealed_registry_error.rb,
app/services/command_tower/messaging/notification_types/invalid_declaration_error.rb
Defined Under Namespace
Classes: CatalogCategory, Declaration, DeclarationValidator, DuplicateTypeError, Error, InvalidDeclarationError, NotFoundError, Registry, SealedRegistryError
Class Method Summary
collapse
Class Method Details
.catalog ⇒ Object
28
29
30
|
# File 'app/services/command_tower/messaging/notification_types.rb', line 28
def catalog
Registry.instance.catalog
end
|
.enumerate ⇒ Object
24
25
26
|
# File 'app/services/command_tower/messaging/notification_types.rb', line 24
def enumerate
Registry.instance.enumerate
end
|
.lookup(key) ⇒ Object
16
17
18
|
# File 'app/services/command_tower/messaging/notification_types.rb', line 16
def lookup(key)
Registry.instance.lookup(key)
end
|
.register(declaration) ⇒ Object
8
9
10
|
# File 'app/services/command_tower/messaging/notification_types.rb', line 8
def register(declaration)
Registry.instance.register(declaration)
end
|
.registered?(key) ⇒ Boolean
20
21
22
|
# File 'app/services/command_tower/messaging/notification_types.rb', line 20
def registered?(key)
Registry.instance.registered?(key)
end
|
.reset! ⇒ Object
32
33
34
|
# File 'app/services/command_tower/messaging/notification_types.rb', line 32
def reset!
Registry.reset!
end
|
.seal ⇒ Object
12
13
14
|
# File 'app/services/command_tower/messaging/notification_types.rb', line 12
def seal
Registry.instance.seal
end
|