Class: ThumbnailClass
- Inherits:
-
Object
- Object
- ThumbnailClass
- Defined in:
- lib/httpimagestore/thumbnail_class.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(name, method, width, height, format = 'JPEG', options = {}) ⇒ ThumbnailClass
constructor
A new instance of ThumbnailClass.
Constructor Details
#initialize(name, method, width, height, format = 'JPEG', options = {}) ⇒ ThumbnailClass
Returns a new instance of ThumbnailClass.
2 3 4 5 6 7 8 9 |
# File 'lib/httpimagestore/thumbnail_class.rb', line 2 def initialize(name, method, width, height, format = 'JPEG', = {}) @name = name @method = method @width = width @height = height @format = format @options = end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
11 12 13 |
# File 'lib/httpimagestore/thumbnail_class.rb', line 11 def format @format end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
11 12 13 |
# File 'lib/httpimagestore/thumbnail_class.rb', line 11 def height @height end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
11 12 13 |
# File 'lib/httpimagestore/thumbnail_class.rb', line 11 def method @method end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/httpimagestore/thumbnail_class.rb', line 11 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/httpimagestore/thumbnail_class.rb', line 11 def @options end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
11 12 13 |
# File 'lib/httpimagestore/thumbnail_class.rb', line 11 def width @width end |