Class: Pictify::GifRenderResult
- Inherits:
-
Object
- Object
- Pictify::GifRenderResult
- Defined in:
- lib/pictify/types.rb
Overview
Result of a GIF render (+render_gif+). Flattened from the API's
{ gif: {...} } envelope.
Maps { url, uid, width, height, animationLength }.
Instance Attribute Summary collapse
-
#animation_length ⇒ Object
readonly
Returns the value of attribute animation_length.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(data) ⇒ GifRenderResult
constructor
A new instance of GifRenderResult.
Constructor Details
#initialize(data) ⇒ GifRenderResult
Returns a new instance of GifRenderResult.
97 98 99 100 101 102 103 104 |
# File 'lib/pictify/types.rb', line 97 def initialize(data) @raw = data @url = data["url"] @uid = data["uid"] @width = data["width"] @height = data["height"] @animation_length = data["animationLength"] end |
Instance Attribute Details
#animation_length ⇒ Object (readonly)
Returns the value of attribute animation_length.
95 96 97 |
# File 'lib/pictify/types.rb', line 95 def animation_length @animation_length end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
95 96 97 |
# File 'lib/pictify/types.rb', line 95 def height @height end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
95 96 97 |
# File 'lib/pictify/types.rb', line 95 def raw @raw end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
95 96 97 |
# File 'lib/pictify/types.rb', line 95 def uid @uid end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
95 96 97 |
# File 'lib/pictify/types.rb', line 95 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
95 96 97 |
# File 'lib/pictify/types.rb', line 95 def width @width end |