Sha256: 5c97f255e30a4040a3b4bc1c77e9b370bd475e8a1862c47dc7dc7204302f9be3
Contents?: true
Size: 559 Bytes
Versions: 7
Compression:
Stored size: 559 Bytes
Contents
module Bitmovin::Encoding module Outputs def self.list(limit = 100, offset = 0) response = Bitmovin.client.get '/v1/encoding/outputs', { limit: limit, offset: offset } result = (JSON.parse(response.body))['data']['result'] list = result['items'].map do |item| case item['type'].downcase when "s3" S3Output.new(item) when "gcs" GcsOutput.new(item) end end list end end end require 'bitmovin/encoding/outputs/s3_output' require 'bitmovin/encoding/outputs/gcs_output'
Version data entries
7 entries across 7 versions & 1 rubygems