# frozen_string_literal: true

module GobiertoBudgets
  module SearchEngineConfiguration
    class BudgetLine

      def self.all_indices
        [index_forecast, index_executed, index_executed_series, index_forecast_updated]
      end

      def self.index_forecast
        "budgets-forecast-v3"
      end

      def self.index_executed
        "budgets-execution-v3"
      end

      def self.index_executed_series
        "gobierto-budgets-execution-series-v1"
      end

      def self.index_forecast_updated
        "budgets-forecast-updated-v1"
      end

    end
  end
end

# frozen_string_literal: true

module GobiertoBudgets
  module SearchEngineConfiguration
    class BudgetLine

      def self.all_indices
        [index_forecast, index_executed, index_executed_series, index_forecast_updated]
      end

      def self.index_forecast
        GobiertoData::GobiertoBudgets::ES_INDEX_FORECAST
      end

      def self.index_executed
        GobiertoData::GobiertoBudgets::ES_INDEX_EXECUTED
      end

      def self.index_executed_series
        GobiertoData::GobiertoBudgets::ES_INDEX_EXECUTED_SERIES
      end

      def self.index_forecast_updated
        GobiertoData::GobiertoBudgets::ES_INDEX_FORECAST_UPDATED
      end
    end
  end
end

Update budget line configuration to use gobierto data
Update budget line configuration to use gobierto data
