Class: AtlasEngine::CountryProfileIngestionSubset
Instance Attribute Summary
#attributes
Instance Method Summary
collapse
#initialize
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_mapper ⇒ Object
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_ngram ⇒ Object
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_ngram ⇒ Object
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_replicas ⇒ Object
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_shards ⇒ Object
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
|