Class: OmnivideoSdk::Task

Inherits:
Struct
  • Object
show all
Defined in:
lib/omnivideo_sdk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#creditsObject

Returns the value of attribute credits

Returns:

  • (Object)

    the current value of credits



29
30
31
# File 'lib/omnivideo_sdk.rb', line 29

def credits
  @credits
end

#image_urlObject

Returns the value of attribute image_url

Returns:

  • (Object)

    the current value of image_url



29
30
31
# File 'lib/omnivideo_sdk.rb', line 29

def image_url
  @image_url
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



29
30
31
# File 'lib/omnivideo_sdk.rb', line 29

def raw
  @raw
end

#task_idObject

Returns the value of attribute task_id

Returns:

  • (Object)

    the current value of task_id



29
30
31
# File 'lib/omnivideo_sdk.rb', line 29

def task_id
  @task_id
end

#task_statusObject

Returns the value of attribute task_status

Returns:

  • (Object)

    the current value of task_status



29
30
31
# File 'lib/omnivideo_sdk.rb', line 29

def task_status
  @task_status
end

#video_urlObject

Returns the value of attribute video_url

Returns:

  • (Object)

    the current value of video_url



29
30
31
# File 'lib/omnivideo_sdk.rb', line 29

def video_url
  @video_url
end

Instance Method Details

#done?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/omnivideo_sdk.rb', line 30

def done?
  [TaskStatus::SUCCESS, TaskStatus::FAILED].include?(task_status)
end

#output_urlObject



34
35
36
# File 'lib/omnivideo_sdk.rb', line 34

def output_url
  video_url || image_url
end