Class: DashOverlord::UseCases::V1::Videos::Index::Postgres::BuildVideoSearchedLines

Inherits:
Base
  • Object
show all
Defined in:
lib/dash_overlord/use_cases/v1/videos/index/postgres/build_video_searched_subtitles.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



12
13
14
15
16
17
18
19
20
# File 'lib/dash_overlord/use_cases/v1/videos/index/postgres/build_video_searched_subtitles.rb', line 12

def perform
  context.videos = videos.map do |video|
    video.meta = {
      searched_lines: searched_lines_for(video.id)
    }

    video
  end
end