Class: AtlasEngine::CountryProfileIngestionSubset

Inherits:
CountryProfileSubsetBase show all
Defined in:
app/models/atlas_engine/country_profile_ingestion_subset.rb

Instance Attribute Summary

Attributes inherited from CountryProfileSubsetBase

#attributes

Instance Method Summary collapse

Methods inherited from CountryProfileSubsetBase

#initialize

Constructor Details

This class inherits a constructor from AtlasEngine::CountryProfileSubsetBase

Instance Method Details

#correctors(source:) ⇒ Object



7
8
9
10
# File 'app/models/atlas_engine/country_profile_ingestion_subset.rb', line 7

def correctors(source:)
  corrector_names = attributes.dig("correctors", source) || []
  corrector_names.map(&:constantize)
end

#data_mapperObject



38
39
40
# File 'app/models/atlas_engine/country_profile_ingestion_subset.rb', line 38

def data_mapper
  attributes.dig("data_mapper").constantize
end

#post_address_mapper(source) ⇒ Object



28
29
30
# File 'app/models/atlas_engine/country_profile_ingestion_subset.rb', line 28

def post_address_mapper(source)
  attributes.dig("post_address_mapper", source).constantize
end

#settings_max_zip_edge_ngramObject



33
34
35
# File 'app/models/atlas_engine/country_profile_ingestion_subset.rb', line 33

def settings_max_zip_edge_ngram
  attributes.dig("settings", "max_zip_edge_ngram")
end

#settings_min_zip_edge_ngramObject



23
24
25
# File 'app/models/atlas_engine/country_profile_ingestion_subset.rb', line 23

def settings_min_zip_edge_ngram
  attributes.dig("settings", "min_zip_edge_ngram")
end

#settings_number_of_replicasObject



18
19
20
# File 'app/models/atlas_engine/country_profile_ingestion_subset.rb', line 18

def settings_number_of_replicas
  attributes.dig("settings", "number_of_replicas")
end

#settings_number_of_shardsObject



13
14
15
# File 'app/models/atlas_engine/country_profile_ingestion_subset.rb', line 13

def settings_number_of_shards
  attributes.dig("settings", "number_of_shards")
end