Class: Troles::Common::Macros::Configuration::StorageLoader

Inherits:
BaseLoader show all
Defined in:
lib/troles/common/macros/configuration/storage_loader.rb

Instance Attribute Summary

Attributes inherited from BaseLoader

#orm, #strategy

Instance Method Summary collapse

Methods inherited from BaseLoader

#base_class, #namespace, #orm_namespace, #singularity, #strategy_class

Constructor Details

#initialize(strategy, orm) ⇒ StorageLoader

Returns a new instance of StorageLoader.



5
6
7
# File 'lib/troles/common/macros/configuration/storage_loader.rb', line 5

def initialize strategy, orm
  super
end

Instance Method Details

#storage_classObject



9
10
11
# File 'lib/troles/common/macros/configuration/storage_loader.rb', line 9

def storage_class
  @storage_class ||= find_first_class("#{orm_namespace}::Storage::#{strategy_class}", "#{namespace}::Storage::#{strategy_class}")
end