Class: Pictify::VideoRenderResult
- Inherits:
-
Object
- Object
- Pictify::VideoRenderResult
- 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
-
#duration_in_frames ⇒ Object
readonly
Returns the value of attribute duration_in_frames.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ VideoRenderResult
constructor
A new instance of VideoRenderResult.
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_frames ⇒ Object (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 |
#format ⇒ Object (readonly)
Returns the value of attribute format.
326 327 328 |
# File 'lib/pictify/types.rb', line 326 def format @format end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
326 327 328 |
# File 'lib/pictify/types.rb', line 326 def raw @raw end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
326 327 328 |
# File 'lib/pictify/types.rb', line 326 def url @url end |