Class: Bitmovin::Client
- Inherits:
-
Object
- Object
- Bitmovin::Client
- Defined in:
- lib/bitmovin/client.rb
Instance Method Summary collapse
-
#create_encoding_profile(params = {}) ⇒ Bitmovin::EncodingProfile
Create new encoding profile.
-
#create_input(*args) ⇒ Bitmovin::Input
Creates new input.
-
#create_job(params = {}) ⇒ Bitmovin::Job
Creates a new encoding job.
-
#create_output(params = {}) ⇒ Bitmovin::Output
Create a new Bitmovin Output.
-
#get_encoding_profiles_list(page = 1) ⇒ Array<Bitmovin::EncodingProfile>
Get list of available encoding profiles by pages per 10.
-
#get_inputs_list(page = 1, reload = false) ⇒ Array<Bitmovin::Input>
Get lsit of available bitmovin inputs (10 per page).
-
#get_jobs_list(status = :all, page = 1, reload = false) ⇒ Array<Bitmovin::Job>
Get list of available jobs (10 Jobs per page).
-
#get_outputs_list(page = 1, reload = false) ⇒ Array<Bitmovin::Output>
Get lsit of available bitmovin outputs (10 per page).
-
#initialize(api_key) ⇒ Client
constructor
A new instance of Client.
-
#transfer_job(params = {}) ⇒ Bitmovin::TransferJob
Transfer job result to destination outputs.
Constructor Details
Instance Method Details
#create_encoding_profile(params = {}) ⇒ Bitmovin::EncodingProfile
Create new encoding profile
106 107 108 |
# File 'lib/bitmovin/client.rb', line 106 def create_encoding_profile(params = {}) Bitmovin::EncodingProfile.create(params) end |
#create_input(url, params) ⇒ Bitmovin::Input #create_input(params) ⇒ Bitmovin::Input
Creates new input
170 171 172 |
# File 'lib/bitmovin/client.rb', line 170 def create_input(*args) Bitmovin::Input.create(*args) end |
#create_job(params = {}) ⇒ Bitmovin::Job
Creates a new encoding job
37 38 39 |
# File 'lib/bitmovin/client.rb', line 37 def create_job(params = {}) Bitmovin::Job.create(params) end |
#create_output(params = {}) ⇒ Bitmovin::Output
Create a new Bitmovin Output
205 206 207 |
# File 'lib/bitmovin/client.rb', line 205 def create_output(params = {}) Bitmovin::Output.create(params) end |
#get_encoding_profiles_list(page = 1) ⇒ Array<Bitmovin::EncodingProfile>
Get list of available encoding profiles by pages per 10
225 226 227 |
# File 'lib/bitmovin/client.rb', line 225 def get_encoding_profiles_list(page = 1) Bitmovin::EncodingProfile.list(page) end |
#get_inputs_list(page = 1, reload = false) ⇒ Array<Bitmovin::Input>
Get lsit of available bitmovin inputs (10 per page)
248 249 250 |
# File 'lib/bitmovin/client.rb', line 248 def get_inputs_list(page = 1, reload = false) Bitmovin::Input.list(page, reload) end |
#get_jobs_list(status = :all, page = 1, reload = false) ⇒ Array<Bitmovin::Job>
Get list of available jobs (10 Jobs per page)
236 237 238 |
# File 'lib/bitmovin/client.rb', line 236 def get_jobs_list(status = :all, page = 1, reload = false) Bitmovin::Job.list(status, page, reload) end |
#get_outputs_list(page = 1, reload = false) ⇒ Array<Bitmovin::Output>
Get lsit of available bitmovin outputs (10 per page)
260 261 262 |
# File 'lib/bitmovin/client.rb', line 260 def get_outputs_list(page = 1, reload = false) Bitmovin::Output.list(page, reload) end |
#transfer_job(params = {}) ⇒ Bitmovin::TransferJob
Transfer job result to destination outputs
216 217 218 |
# File 'lib/bitmovin/client.rb', line 216 def transfer_job(params={}) Bitmovin::TransferJob.create(params) end |