Class: Pageflow::TextTrackFile

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
HostedFile
Defined in:
app/models/pageflow/text_track_file.rb

Instance Method Summary collapse

Methods included from HostedFile

#attachment, #attachment=, #basename, columns, #keep_on_filesystem_after_upload_to_s3?, #original_url, #retryable?, #url

Methods included from UploadedFile

#file_type, #nested_files, #parent_allows_type_for_nesting, #parent_belongs_to_same_entry

Instance Method Details

#meta_data_attributes=(attributes) ⇒ Object



41
42
43
# File 'app/models/pageflow/text_track_file.rb', line 41

def (attributes)
  self.attributes = attributes.symbolize_keys.slice(:label, :kind, :srclang)
end

#ready?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'app/models/pageflow/text_track_file.rb', line 33

def ready?
  processed?
end

#unprocessed_attachmentObject



37
38
39
# File 'app/models/pageflow/text_track_file.rb', line 37

def unprocessed_attachment
  attachment_on_s3
end