Class: Pictify::BatchRenderResult
- Inherits:
-
Object
- Object
- Pictify::BatchRenderResult
- Defined in:
- lib/pictify/types.rb
Overview
Result of submitting an async batch render (render_batch).
The job runs asynchronously: poll Client#get_batch_results with the returned batch_id to track progress. Maps { batchId, status, totalItems }.
Instance Attribute Summary collapse
-
#batch_id ⇒ Object
readonly
Returns the value of attribute batch_id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#total_items ⇒ Object
readonly
Returns the value of attribute total_items.
Instance Method Summary collapse
-
#initialize(data) ⇒ BatchRenderResult
constructor
A new instance of BatchRenderResult.
Constructor Details
#initialize(data) ⇒ BatchRenderResult
Returns a new instance of BatchRenderResult.
108 109 110 111 112 113 114 |
# File 'lib/pictify/types.rb', line 108 def initialize(data) @raw = data @batch_id = data["batchId"] @status = data["status"] @total_items = data["totalItems"] @message = data["message"] end |
Instance Attribute Details
#batch_id ⇒ Object (readonly)
Returns the value of attribute batch_id.
106 107 108 |
# File 'lib/pictify/types.rb', line 106 def batch_id @batch_id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
106 107 108 |
# File 'lib/pictify/types.rb', line 106 def @message end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
106 107 108 |
# File 'lib/pictify/types.rb', line 106 def raw @raw end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
106 107 108 |
# File 'lib/pictify/types.rb', line 106 def status @status end |
#total_items ⇒ Object (readonly)
Returns the value of attribute total_items.
106 107 108 |
# File 'lib/pictify/types.rb', line 106 def total_items @total_items end |