Module: Ni::StoragesConfig::ClassMethods
- Defined in:
- lib/ni/storages_config.rb
Instance Method Summary collapse
- #copy_storage_and_metadata_repository(interactor_klass) ⇒ Object
- #metadata_repository(klass) ⇒ Object
- #storage(klass) ⇒ Object
Instance Method Details
#copy_storage_and_metadata_repository(interactor_klass) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ni/storages_config.rb', line 16 def (interactor_klass) unless self.context_storage_klass.present? if interactor_klass.context_storage_klass.present? storage interactor_klass.context_storage_klass end end unless self..present? if interactor_klass..present? interactor_klass. end end end |
#metadata_repository(klass) ⇒ Object
12 13 14 |
# File 'lib/ni/storages_config.rb', line 12 def (klass) self. = klass end |
#storage(klass) ⇒ Object
8 9 10 |
# File 'lib/ni/storages_config.rb', line 8 def storage(klass) self.context_storage_klass = klass end |