Class: Pictify::VideoRenderResult

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

Overview

Result of a video template render (+render_video+).

Maps { url, durationInFrames, format }. format echoes what was actually produced ("mp4" or "gif").

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ VideoRenderResult

Returns a new instance of VideoRenderResult.



328
329
330
331
332
333
# File 'lib/pictify/types.rb', line 328

def initialize(data)
  @raw = data
  @url = data["url"]
  @duration_in_frames = data["durationInFrames"]
  @format = data["format"]
end

Instance Attribute Details

#duration_in_framesObject (readonly)

Returns the value of attribute duration_in_frames.



326
327
328
# File 'lib/pictify/types.rb', line 326

def duration_in_frames
  @duration_in_frames
end

#formatObject (readonly)

Returns the value of attribute format.



326
327
328
# File 'lib/pictify/types.rb', line 326

def format
  @format
end

#rawObject (readonly)

Returns the value of attribute raw.



326
327
328
# File 'lib/pictify/types.rb', line 326

def raw
  @raw
end

#urlObject (readonly)

Returns the value of attribute url.



326
327
328
# File 'lib/pictify/types.rb', line 326

def url
  @url
end