Class: Impex::Lookup
- Inherits:
-
Object
- Object
- Impex::Lookup
- Defined in:
- lib/impex/lookup.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#file_loaders ⇒ Object
readonly
Returns the value of attribute file_loaders.
-
#history_managers ⇒ Object
readonly
Returns the value of attribute history_managers.
Instance Method Summary collapse
- #file_loader ⇒ Object
- #history_manager ⇒ Object
-
#initialize(config = {}) ⇒ Lookup
constructor
A new instance of Lookup.
Constructor Details
#initialize(config = {}) ⇒ Lookup
Returns a new instance of Lookup.
16 17 18 19 20 21 22 23 24 |
# File 'lib/impex/lookup.rb', line 16 def initialize(config = {}) @config = config @file_loaders = ::ActiveSupport::HashWithIndifferentAccess.new @history_managers = ::ActiveSupport::HashWithIndifferentAccess.new setup_file_loaders setup_history_managers end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/impex/lookup.rb', line 14 def config @config end |
#file_loaders ⇒ Object (readonly)
Returns the value of attribute file_loaders.
14 15 16 |
# File 'lib/impex/lookup.rb', line 14 def file_loaders @file_loaders end |
#history_managers ⇒ Object (readonly)
Returns the value of attribute history_managers.
14 15 16 |
# File 'lib/impex/lookup.rb', line 14 def history_managers @history_managers end |
Instance Method Details
#file_loader ⇒ Object
26 27 28 |
# File 'lib/impex/lookup.rb', line 26 def file_loader lookup_for_file_loader end |
#history_manager ⇒ Object
30 31 32 |
# File 'lib/impex/lookup.rb', line 30 def history_manager lookup_for_history_manager end |