Module: Insuggest::Gcv::Depreciation::ClassMethods
- Defined in:
- lib/insuggest/gcv/depreciation.rb
Instance Method Summary collapse
Instance Method Details
#get_index_name ⇒ Object
5 6 7 |
# File 'lib/insuggest/gcv/depreciation.rb', line 5 def get_index_name "gcv_depreciations" end |
#repository ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/insuggest/gcv/depreciation.rb', line 9 def repository index_name = get_index_name Elasticsearch::Persistence::Repository.new do index index_name type :depreciation settings number_of_shards: 2 end end |