Class: Pageflow::ZencoderAudioOutputDefinition Private

Inherits:
ZencoderOutputDefinition show all
Defined in:
lib/pageflow/zencoder_audio_output_definition.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Attributes inherited from ZencoderOutputDefinition

#options

Instance Method Summary collapse

Methods inherited from ZencoderOutputDefinition

#==

Constructor Details

#initialize(audio_file, options = {}) ⇒ ZencoderAudioOutputDefinition

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ZencoderAudioOutputDefinition.



6
7
8
9
# File 'lib/pageflow/zencoder_audio_output_definition.rb', line 6

def initialize(audio_file, options = {})
  super(options)
  @audio_file = audio_file
end

Instance Attribute Details

#audio_fileObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



4
5
6
# File 'lib/pageflow/zencoder_audio_output_definition.rb', line 4

def audio_file
  @audio_file
end

Instance Method Details

#input_s3_urlObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/pageflow/zencoder_audio_output_definition.rb', line 11

def input_s3_url
  @audio_file.attachment_s3_url
end

#outputsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
18
19
20
21
# File 'lib/pageflow/zencoder_audio_output_definition.rb', line 15

def outputs
  [
    transferable(m4a_definition),
    transferable(mp3_definition),
    transferable(ogg_definition)
  ].flatten
end