Class: Pageflow::AudioFile
Instance Method Summary
collapse
#failed?, #ready?, #retry!, #retryable?
#attachment, #attachment=, #attachment_default_url, #attachment_styles, #attachments_for_export, #basename, #can_upload?, #direct_upload_config, #failed?, #publish!, #ready?, #retryable?, #url
#attachments_for_export, #basename, #cache_key, #can_upload?, #failed?, #file_name, #file_type, #nested_files, #original_url, #parent_allows_type_for_nesting, #parent_belongs_to_same_entry, #publish!, #ready?, #retry!, #retryable?, #url
Instance Method Details
#attachment_s3_url ⇒ Object
8
9
10
|
# File 'app/models/pageflow/audio_file.rb', line 8
def attachment_s3_url
"s3://#{File.join(attachment.bucket_name, attachment.path)}"
end
|
#m4a ⇒ Object
12
13
14
|
# File 'app/models/pageflow/audio_file.rb', line 12
def m4a
ZencoderAttachment.new(self, "audio.m4a")
end
|
28
29
30
|
# File 'app/models/pageflow/audio_file.rb', line 28
def meta_data_attributes=(attributes)
self.attributes = attributes.symbolize_keys.slice(:format, :duration_in_ms)
end
|
#mp3 ⇒ Object
16
17
18
|
# File 'app/models/pageflow/audio_file.rb', line 16
def mp3
ZencoderAttachment.new(self, "audio.mp3")
end
|
#ogg ⇒ Object
20
21
22
|
# File 'app/models/pageflow/audio_file.rb', line 20
def ogg
ZencoderAttachment.new(self, "audio.ogg")
end
|
#output_definition ⇒ Object