Class: OmniflashSdk::Task
- Inherits:
-
Struct
- Object
- Struct
- OmniflashSdk::Task
- Defined in:
- lib/omniflash_sdk.rb
Instance Attribute Summary collapse
-
#audio_url ⇒ Object
Returns the value of attribute audio_url.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#credits ⇒ Object
Returns the value of attribute credits.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#task_status ⇒ Object
Returns the value of attribute task_status.
-
#task_type ⇒ Object
Returns the value of attribute task_type.
-
#video_url ⇒ Object
Returns the value of attribute video_url.
Instance Method Summary collapse
Instance Attribute Details
#audio_url ⇒ Object
Returns the value of attribute audio_url
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def audio_url @audio_url end |
#created_at ⇒ Object
Returns the value of attribute created_at
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def created_at @created_at end |
#credits ⇒ Object
Returns the value of attribute credits
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def credits @credits end |
#image_url ⇒ Object
Returns the value of attribute image_url
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def image_url @image_url end |
#model_id ⇒ Object
Returns the value of attribute model_id
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def model_id @model_id end |
#raw ⇒ Object
Returns the value of attribute raw
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def raw @raw end |
#request_id ⇒ Object
Returns the value of attribute request_id
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def request_id @request_id end |
#task_id ⇒ Object
Returns the value of attribute task_id
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def task_id @task_id end |
#task_status ⇒ Object
Returns the value of attribute task_status
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def task_status @task_status end |
#task_type ⇒ Object
Returns the value of attribute task_type
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def task_type @task_type end |
#video_url ⇒ Object
Returns the value of attribute video_url
30 31 32 |
# File 'lib/omniflash_sdk.rb', line 30 def video_url @video_url end |
Instance Method Details
#done? ⇒ Boolean
35 36 37 |
# File 'lib/omniflash_sdk.rb', line 35 def done? [TaskStatus::SUCCESS, TaskStatus::FAILED].include?(task_status) end |
#output_url ⇒ Object
39 40 41 |
# File 'lib/omniflash_sdk.rb', line 39 def output_url video_url || image_url || audio_url end |