Class: Shrine::Plugins::Thumbhash::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/shrine/plugins/thumbhash/image.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width, height, pixels) ⇒ Image

Returns a new instance of Image.



9
10
11
12
13
# File 'lib/shrine/plugins/thumbhash/image.rb', line 9

def initialize(width, height, pixels)
  @width = width
  @height = height
  @pixels = pixels
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



7
8
9
# File 'lib/shrine/plugins/thumbhash/image.rb', line 7

def height
  @height
end

#pixelsObject (readonly)

Returns the value of attribute pixels.



7
8
9
# File 'lib/shrine/plugins/thumbhash/image.rb', line 7

def pixels
  @pixels
end

#widthObject (readonly)

Returns the value of attribute width.



7
8
9
# File 'lib/shrine/plugins/thumbhash/image.rb', line 7

def width
  @width
end