Class: Pageflow::ZencoderMetaDataOutputDefinition

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

Instance Attribute Summary collapse

Attributes inherited from ZencoderOutputDefinition

#options

Instance Method Summary collapse

Methods inherited from ZencoderOutputDefinition

#==

Constructor Details

#initialize(file, options = {}) ⇒ ZencoderMetaDataOutputDefinition

Returns a new instance of ZencoderMetaDataOutputDefinition.



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

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

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



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

def file
  @file
end

Instance Method Details

#input_s3_urlObject



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

def input_s3_url
  @file.attachment_s3_url
end

#outputsObject



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

def outputs
  [
    {
      :label => 'stub',
      :clip_length => 1
    }
  ]
end