Class: Pageflow::ZencoderMetaDataOutputDefinition Private

Inherits:
ZencoderOutputDefinition show all
Defined in:
lib/pageflow/zencoder_meta_data_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(file, options = {}) ⇒ ZencoderMetaDataOutputDefinition

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 ZencoderMetaDataOutputDefinition.



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

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

Instance Attribute Details

#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_meta_data_output_definition.rb', line 4

def file
  @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_meta_data_output_definition.rb', line 11

def input_s3_url
  @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
22
# File 'lib/pageflow/zencoder_meta_data_output_definition.rb', line 15

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