Class: AtlasEngine::ConnectivityController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AtlasEngine::ConnectivityController
- Defined in:
- app/controllers/atlas_engine/connectivity_controller.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize ⇒ ConnectivityController
constructor
A new instance of ConnectivityController.
Constructor Details
#initialize ⇒ ConnectivityController
Returns a new instance of ConnectivityController.
6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/atlas_engine/connectivity_controller.rb', line 6 def initialize super @repository = AtlasEngine::Elasticsearch::Repository.new( index_base_name: "", index_settings: {}, index_mappings: {}, mapper_callable: nil, ) end |
Instance Method Details
#index ⇒ Object
16 17 18 19 |
# File 'app/controllers/atlas_engine/connectivity_controller.rb', line 16 def index @indices = @repository.indices @post_addresses = AtlasEngine::PostAddress.limit(10) end |