Sha256: 6583b01e8dc6e53e25f2e71296b3fe962e8e9d6a97079a6d5055e2946290b623

Contents?: true

Size: 610 Bytes

Versions: 12

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true
module ActiveEncode
  # == Active Encode adapters
  #
  # Active Encode has adapters for the following engines:
  #
  #
  #
  module EngineAdapters
    extend ActiveSupport::Autoload

    autoload :MatterhornAdapter
    autoload :ZencoderAdapter
    autoload :ElasticTranscoderAdapter
    autoload :TestAdapter
    autoload :FfmpegAdapter
    autoload :MediaConvertAdapter
    autoload :PassThroughAdapter

    ADAPTER = 'Adapter'
    private_constant :ADAPTER

    class << self
      def lookup(name)
        const_get(name.to_s.camelize << ADAPTER)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_encode-1.2.3 lib/active_encode/engine_adapters.rb
active_encode-1.2.2 lib/active_encode/engine_adapters.rb
active_encode-1.2.1 lib/active_encode/engine_adapters.rb
active_encode-1.2.0 lib/active_encode/engine_adapters.rb
active_encode-1.1.3 lib/active_encode/engine_adapters.rb
active_encode-1.1.2 lib/active_encode/engine_adapters.rb
active_encode-1.1.1 lib/active_encode/engine_adapters.rb
active_encode-1.1.0 lib/active_encode/engine_adapters.rb
active_encode-1.0.0 lib/active_encode/engine_adapters.rb
active_encode-0.8.2 lib/active_encode/engine_adapters.rb
active_encode-0.8.1 lib/active_encode/engine_adapters.rb
active_encode-0.8.0 lib/active_encode/engine_adapters.rb