class DashOverlord::UseCases::V1::Videos::Import::FromPostgresToElasticSearch::StoreBeeVideo
Public Instance Methods
bee_video_attributes()
click to toggle source
# File lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/store_bee_video.rb, line 19 def bee_video_attributes attributes = postgres_bee_video.attributes.dup attributes.delete(:extra) attributes.merge!(postgres_bee_video.extra || {}) attributes[:title] = "#{attributes['country']}, #{attributes['category']}" attributes end
perform()
click to toggle source
# File lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/store_bee_video.rb, line 11 def perform # results = DashOverlord::Models::V1::ElasticSearch::BeeVideo.by_dashboard('hhc').search Models::V1::ElasticSearch::BeeVideo .by_dashboard(segment_uid) .create bee_video_attributes end