Class: Impex::Lookup

Inherits:
Object
  • Object
show all
Defined in:
lib/impex/lookup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



14
15
16
# File 'lib/impex/lookup.rb', line 14

def config
  @config
end

#file_loadersObject (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_managersObject (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_loaderObject



26
27
28
# File 'lib/impex/lookup.rb', line 26

def file_loader
  lookup_for_file_loader
end

#history_managerObject



30
31
32
# File 'lib/impex/lookup.rb', line 30

def history_manager
  lookup_for_history_manager
end