Class: OmniflashSdk::Task

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#audio_urlObject

Returns the value of attribute audio_url

Returns:

  • (Object)

    the current value of audio_url



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

def audio_url
  @audio_url
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



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

def created_at
  @created_at
end

#creditsObject

Returns the value of attribute credits

Returns:

  • (Object)

    the current value of credits



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

def credits
  @credits
end

#image_urlObject

Returns the value of attribute image_url

Returns:

  • (Object)

    the current value of image_url



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

def image_url
  @image_url
end

#model_idObject

Returns the value of attribute model_id

Returns:

  • (Object)

    the current value of model_id



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

def model_id
  @model_id
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



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

def raw
  @raw
end

#request_idObject

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



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

def request_id
  @request_id
end

#task_idObject

Returns the value of attribute task_id

Returns:

  • (Object)

    the current value of task_id



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

def task_id
  @task_id
end

#task_statusObject

Returns the value of attribute task_status

Returns:

  • (Object)

    the current value of task_status



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

def task_status
  @task_status
end

#task_typeObject

Returns the value of attribute task_type

Returns:

  • (Object)

    the current value of task_type



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

def task_type
  @task_type
end

#video_urlObject

Returns the value of attribute video_url

Returns:

  • (Object)

    the current value of video_url



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

def video_url
  @video_url
end

Instance Method Details

#done?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/omniflash_sdk.rb', line 35

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

#output_urlObject



39
40
41
# File 'lib/omniflash_sdk.rb', line 39

def output_url
  video_url || image_url || audio_url
end