Class: ApiCanon::DocumentationStore
- Inherits:
-
Object
- Object
- ApiCanon::DocumentationStore
- Includes:
- Singleton
- Defined in:
- lib/api_canon/documentation_store.rb
Overview
Replace this at the earliest possible opportunity with something that stores stuff in Redis or something
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.docos ⇒ Object
14 15 16 |
# File 'lib/api_canon/documentation_store.rb', line 14 def self.docos self.instance.docos end |
.fetch(controller_path) ⇒ Object
20 21 22 |
# File 'lib/api_canon/documentation_store.rb', line 20 def self.fetch controller_path self.instance.docos[controller_path] end |
.store(cont_doco) ⇒ Object
17 18 19 |
# File 'lib/api_canon/documentation_store.rb', line 17 def self.store cont_doco self.instance.store cont_doco end |
Instance Method Details
#docos ⇒ Object
11 12 13 |
# File 'lib/api_canon/documentation_store.rb', line 11 def docos @docos ||= {} end |
#store(cont_doco) ⇒ Object
7 8 9 10 |
# File 'lib/api_canon/documentation_store.rb', line 7 def store cont_doco @docos ||= {} @docos[cont_doco.controller_path] = cont_doco end |