Class: Pageflow::ZencoderAudioOutputDefinition

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

Instance Attribute Summary collapse

Attributes inherited from ZencoderOutputDefinition

#options

Instance Method Summary collapse

Methods inherited from ZencoderOutputDefinition

#==

Constructor Details

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

Returns a new instance of ZencoderAudioOutputDefinition.



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

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

Instance Attribute Details

#audio_fileObject (readonly)

Returns the value of attribute audio_file.



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

def audio_file
  @audio_file
end

Instance Method Details

#input_s3_urlObject



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

def input_s3_url
  @audio_file.attachment_s3_url
end

#outputsObject



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

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