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.
91 92 93 94 95 96 97 98 |
# File 'lib/pictify/types.rb', line 91 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.
89 90 91 |
# File 'lib/pictify/types.rb', line 89 def animation_length @animation_length end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
89 90 91 |
# File 'lib/pictify/types.rb', line 89 def height @height end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
89 90 91 |
# File 'lib/pictify/types.rb', line 89 def raw @raw end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
89 90 91 |
# File 'lib/pictify/types.rb', line 89 def uid @uid end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
89 90 91 |
# File 'lib/pictify/types.rb', line 89 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
89 90 91 |
# File 'lib/pictify/types.rb', line 89 def width @width end |