Class: Apiwork::API::Registry
- Inherits:
-
Registry
- Object
- Registry
- Apiwork::API::Registry
- Defined in:
- lib/apiwork/api/registry.rb
Class Method Summary collapse
Class Method Details
.find(base_path) ⇒ Object
13 14 15 16 17 |
# File 'lib/apiwork/api/registry.rb', line 13 def find(base_path) return nil unless base_path super end |
.register(api_class) ⇒ Object
7 8 9 10 11 |
# File 'lib/apiwork/api/registry.rb', line 7 def register(api_class) return unless api_class.base_path store[normalize_key(api_class.base_path)] = api_class end |
.unregister(base_path) ⇒ Object
19 20 21 |
# File 'lib/apiwork/api/registry.rb', line 19 def unregister(base_path) delete(base_path) if base_path end |