Class: Evri::Image::Thumbnail

Inherits:
Object
  • Object
show all
Defined in:
lib/evri/media.rb

Overview

Represents an Thumbnail for an Image.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#heightObject

Returns the value of attribute height.



40
41
42
# File 'lib/evri/media.rb', line 40

def height
  @height
end

#sizeObject

Returns the value of attribute size.



40
41
42
# File 'lib/evri/media.rb', line 40

def size
  @size
end

#urlObject

Returns the value of attribute url.



40
41
42
# File 'lib/evri/media.rb', line 40

def url
  @url
end

#widthObject

Returns the value of attribute width.



40
41
42
# File 'lib/evri/media.rb', line 40

def width
  @width
end