class Abbyy::Models::Task

Overview

Task.

See status-codes

Defined in:

abbyy/models/task.cr

Constant Summary

TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"

Constructors

Instance Method Summary

Constructor Detail

def self.new(xml : XML::Node) #

[View source]

Instance Method Detail

def credits : Int32 | Nil #

Specifies the cost of processing: it contains the estimated cost before task processing, and the actual cost, after the task has been completed. The measurement unit is the price of processing of one field.


[View source]
def credits=(credits : Int32 | Nil) #

Specifies the cost of processing: it contains the estimated cost before task processing, and the actual cost, after the task has been completed. The measurement unit is the price of processing of one field.


[View source]
def description : String | Nil #

[View source]
def description=(description : String | Nil) #

[View source]
def error : String | Nil #

Description of the error occurred during processing. This attribute is available for the tasks with ProcessingFailed status only.


[View source]
def error=(error : String | Nil) #

Description of the error occurred during processing. This attribute is available for the tasks with ProcessingFailed status only.


[View source]
def estimated_processing_time : Int32 | Nil #

Estimated time until the task is completed (in seconds). This attribute is available for the tasks with Queued or InProgress status.


[View source]
def estimated_processing_time=(estimated_processing_time : Int32 | Nil) #

Estimated time until the task is completed (in seconds). This attribute is available for the tasks with Queued or InProgress status.


[View source]
def files_count : Int32 | Nil #

Specifies the number of files in the task.


[View source]
def files_count=(files_count : Int32 | Nil) #

Specifies the number of files in the task.


[View source]
def id : String | Nil #

Specifies the identifier of the task.


[View source]
def id=(id : String | Nil) #

Specifies the identifier of the task.


[View source]
def registration_time : Time | Nil #

[View source]
def registration_time=(registration_time : Time | Nil) #

[View source]
def result_url : String | Nil #

This attribute is only available for completed tasks. It provides the URL of the result of processing. The hyperlink has limited lifetime. If you want to download the result after that time has passed, use the getTaskStatus or listTasks method to obtain the new hyperlink.


[View source]
def result_url2 : String | Nil #

This attribute is only available for completed tasks which were processed with multiple export formats. It provides the URL of the result saved in the second specified format. Otherwise, it has the same properties as the resultUrl attribute.


[View source]
def result_url2=(result_url2 : String | Nil) #

This attribute is only available for completed tasks which were processed with multiple export formats. It provides the URL of the result saved in the second specified format. Otherwise, it has the same properties as the resultUrl attribute.


[View source]
def result_url3 : String | Nil #

This attribute is only available for completed tasks which were processed with three export formats. It provides the URL of the result saved in the third specified format. Otherwise, it has the same properties as the resultUrl attribute.


[View source]
def result_url3=(result_url3 : String | Nil) #

This attribute is only available for completed tasks which were processed with three export formats. It provides the URL of the result saved in the third specified format. Otherwise, it has the same properties as the resultUrl attribute.


[View source]
def result_url=(result_url : String | Nil) #

This attribute is only available for completed tasks. It provides the URL of the result of processing. The hyperlink has limited lifetime. If you want to download the result after that time has passed, use the getTaskStatus or listTasks method to obtain the new hyperlink.


[View source]
def status : TaskStatus | Nil #

[View source]
def status=(status : TaskStatus | Nil) #

[View source]
def status_change_time : Time | Nil #

[View source]
def status_change_time=(status_change_time : Time | Nil) #

[View source]