Class: Evri::Image::Thumbnail
- Inherits:
-
Object
- Object
- Evri::Image::Thumbnail
- Defined in:
- lib/evri/media.rb
Overview
Represents an Thumbnail for an Image.
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#size ⇒ Object
Returns the value of attribute size.
-
#url ⇒ Object
Returns the value of attribute url.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(json) ⇒ Thumbnail
constructor
:nodoc:.
Constructor Details
#initialize(json) ⇒ Thumbnail
:nodoc:
41 42 43 44 45 46 |
# File 'lib/evri/media.rb', line 41 def initialize json # :nodoc: @size = json[:size] @width = json[:width] @height = json[:height] @url = json[:url] end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
40 41 42 |
# File 'lib/evri/media.rb', line 40 def height @height end |
#size ⇒ Object
Returns the value of attribute size.
40 41 42 |
# File 'lib/evri/media.rb', line 40 def size @size end |
#url ⇒ Object
Returns the value of attribute url.
40 41 42 |
# File 'lib/evri/media.rb', line 40 def url @url end |
#width ⇒ Object
Returns the value of attribute width.
40 41 42 |
# File 'lib/evri/media.rb', line 40 def width @width end |