Sha256: 9ffc465039e36eb988101b6feae763e6f2b8bcbbb0109e3e2ed4a5bef56bc222

Contents?: true

Size: 362 Bytes

Versions: 34

Compression:

Stored size: 362 Bytes

Contents

module Pageflow
  class TextTrackFileUrlTemplates
    def call
      {
        vtt: UrlTemplate.from_attachment(example_file.processed_attachment, :vtt)
      }
    end

    private

    def example_file
      @example_file ||= TextTrackFile.new(id: 0,
                                          processed_attachment_file_name: ':basename.vtt')
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
pageflow-13.6.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.5.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.4.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.3.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.2.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-12.6.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.1.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-12.5.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-12.4.1 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.rc1 app/models/pageflow/text_track_file_url_templates.rb
pageflow-12.4.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-12.3.0 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.beta7 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.beta6 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.beta5 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.beta4 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.beta3 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.beta2 app/models/pageflow/text_track_file_url_templates.rb
pageflow-13.0.0.beta1 app/models/pageflow/text_track_file_url_templates.rb