Class: DashOverlord::UseCases::V1::Videos::Import::FromPostgresToElasticSearch::DeleteElasticSearchBeeVideos

Inherits:
Base
  • Object
show all
Defined in:
lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/delete_elastic_search_records.rb

Constant Summary

Constants inherited from Base

Base::AbortError

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods inherited from Base

context_reader, #final, #initialize, perform, target, #target_valid?

Constructor Details

This class inherits a constructor from DashOverlord::UseCases::Base

Instance Method Details

#performObject



11
12
13
14
15
# File 'lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/delete_elastic_search_records.rb', line 11

def perform
  DashOverlord::Models::V1::ElasticSearch::BeeVideo
    .by_dashboard('hhc')
    .delete_all
end