Class: Pictify::BatchRenderResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute batch_id.



106
107
108
# File 'lib/pictify/types.rb', line 106

def batch_id
  @batch_id
end

#messageObject (readonly)

Returns the value of attribute message.



106
107
108
# File 'lib/pictify/types.rb', line 106

def message
  @message
end

#rawObject (readonly)

Returns the value of attribute raw.



106
107
108
# File 'lib/pictify/types.rb', line 106

def raw
  @raw
end

#statusObject (readonly)

Returns the value of attribute status.



106
107
108
# File 'lib/pictify/types.rb', line 106

def status
  @status
end

#total_itemsObject (readonly)

Returns the value of attribute total_items.



106
107
108
# File 'lib/pictify/types.rb', line 106

def total_items
  @total_items
end