Class: Pictify::GenerateVideoTemplateResult

Inherits:
Object
  • Object
show all
Defined in:
lib/pictify/types.rb

Overview

Result of AI video template generation (+generate_video_template+).

Maps { template: {...}, previewUrl } — the saved draft VideoTemplate plus a rendered preview frame of the generated scene (may be nil).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ GenerateVideoTemplateResult

Returns a new instance of GenerateVideoTemplateResult.



343
344
345
346
347
# File 'lib/pictify/types.rb', line 343

def initialize(data)
  @raw = data
  @template = VideoTemplate.new(data["template"] || {})
  @preview_url = data["previewUrl"]
end

Instance Attribute Details

#preview_urlObject (readonly)

Returns the value of attribute preview_url.



341
342
343
# File 'lib/pictify/types.rb', line 341

def preview_url
  @preview_url
end

#rawObject (readonly)

Returns the value of attribute raw.



341
342
343
# File 'lib/pictify/types.rb', line 341

def raw
  @raw
end

#templateObject (readonly)

Returns the value of attribute template.



341
342
343
# File 'lib/pictify/types.rb', line 341

def template
  @template
end