Class: OmnivideoSdk::Task
- Inherits:
-
Struct
- Object
- Struct
- OmnivideoSdk::Task
- Defined in:
- lib/omnivideo_sdk.rb
Instance Attribute Summary collapse
-
#credits ⇒ Object
Returns the value of attribute credits.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#task_status ⇒ Object
Returns the value of attribute task_status.
-
#video_url ⇒ Object
Returns the value of attribute video_url.
Instance Method Summary collapse
Instance Attribute Details
#credits ⇒ Object
Returns the value of attribute credits
29 30 31 |
# File 'lib/omnivideo_sdk.rb', line 29 def credits @credits end |
#image_url ⇒ Object
Returns the value of attribute image_url
29 30 31 |
# File 'lib/omnivideo_sdk.rb', line 29 def image_url @image_url end |
#raw ⇒ Object
Returns the value of attribute raw
29 30 31 |
# File 'lib/omnivideo_sdk.rb', line 29 def raw @raw end |
#task_id ⇒ Object
Returns the value of attribute task_id
29 30 31 |
# File 'lib/omnivideo_sdk.rb', line 29 def task_id @task_id end |
#task_status ⇒ Object
Returns the value of attribute task_status
29 30 31 |
# File 'lib/omnivideo_sdk.rb', line 29 def task_status @task_status end |
#video_url ⇒ Object
Returns the value of attribute video_url
29 30 31 |
# File 'lib/omnivideo_sdk.rb', line 29 def video_url @video_url end |
Instance Method Details
#done? ⇒ Boolean
30 31 32 |
# File 'lib/omnivideo_sdk.rb', line 30 def done? [TaskStatus::SUCCESS, TaskStatus::FAILED].include?(task_status) end |
#output_url ⇒ Object
34 35 36 |
# File 'lib/omnivideo_sdk.rb', line 34 def output_url video_url || image_url end |