Class: Shrine::Plugins::Thumbhash::Image
- Inherits:
-
Object
- Object
- Shrine::Plugins::Thumbhash::Image
- Defined in:
- lib/shrine/plugins/thumbhash/image.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#pixels ⇒ Object
readonly
Returns the value of attribute pixels.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width, height, pixels) ⇒ Image
constructor
A new instance of Image.
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
#height ⇒ Object (readonly)
Returns the value of attribute height.
7 8 9 |
# File 'lib/shrine/plugins/thumbhash/image.rb', line 7 def height @height end |
#pixels ⇒ Object (readonly)
Returns the value of attribute pixels.
7 8 9 |
# File 'lib/shrine/plugins/thumbhash/image.rb', line 7 def pixels @pixels end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
7 8 9 |
# File 'lib/shrine/plugins/thumbhash/image.rb', line 7 def width @width end |