Module: Bitmovin::Encoding::Inputs
- Defined in:
- lib/bitmovin/encoding/inputs.rb,
lib/bitmovin/encoding/inputs/analysis.rb,
lib/bitmovin/encoding/inputs/s3_input.rb,
lib/bitmovin/encoding/inputs/ftp_input.rb,
lib/bitmovin/encoding/inputs/gcs_input.rb,
lib/bitmovin/encoding/inputs/http_input.rb,
lib/bitmovin/encoding/inputs/rtmp_input.rb,
lib/bitmovin/encoding/inputs/sftp_input.rb,
lib/bitmovin/encoding/inputs/azure_input.rb,
lib/bitmovin/encoding/inputs/https_input.rb,
lib/bitmovin/encoding/inputs/aspera_input.rb,
lib/bitmovin/encoding/inputs/analysis_task.rb,
lib/bitmovin/encoding/inputs/generic_s3_input.rb
Defined Under Namespace
Classes: Analysis, AnalysisTask, AsperaInput, AzureInput, FtpInput, GcsInput, GenericS3Input, HttpInput, HttpsInput, RtmpInput, S3Input, SftpInput
Class Method Summary collapse
Class Method Details
.list(limit = 100, offset = 0) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/bitmovin/encoding/inputs.rb', line 3 def Inputs.list(limit = 100, offset = 0) response = Bitmovin.client.get '/v1/encoding/inputs', { limit: limit, offset: offset } result = (JSON.parse(response.body))['data']['result'] list = result['items'].map do |item| case item['type'].downcase when "s3" S3Input.new(item) when "gcs" GcsInput.new(item) when "http" HttpInput.new(item) when "https" HttpsInput.new(item) when "aspera" AsperaInput.new(item) when "rtmp" RtmpInput.new(item) when "generic-s3" GenericS3Input.new(item) when "azure" AzureInput.new(item) when "ftp" FtpInput.new(item) when "sftp" SftpInput.new(item) end end list end |