Class: Apiwork::API::Registry
Class Method Summary
collapse
Methods inherited from Registry
clear!, delete, exists?, find!, keys, store, values
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
|