Files
old-holivud2/app/models/audio_files_for_request.rb
2020-05-31 22:38:19 +02:00

29 lines
499 B
Ruby

class AudioFilesForRequest
attr_reader :start_timecode_offset
def initialize(video, start_timecode_offset)
@video = video
@start_timecode_offset = start_timecode_offset
end
def file_object_name
video.file.key if video.file.attached?
end
def edl_file_object_name
video.audio_only_edl_file.key if video.audio_only_edl_file.attached?
end
def aws_bucket_name
ENV["AWS_BUCKET"]
end
def job_id
video.analysis_uid
end
private
attr_reader :video
end