Class: ImageCropingResizing::Cropimage
- Inherits:
-
Object
- Object
- ImageCropingResizing::Cropimage
- Defined in:
- lib/imageCropingResizing.rb
Instance Attribute Summary collapse
-
#imageUrl ⇒ Object
readonly
Returns the value of attribute imageUrl.
-
#imgHeight ⇒ Object
readonly
Returns the value of attribute imgHeight.
-
#imgWidth ⇒ Object
readonly
Returns the value of attribute imgWidth.
Instance Method Summary collapse
- #cropImage ⇒ Object
- #cropResizeImage ⇒ Object
-
#initialize(imageUrl, imgWidth, imgHeight) ⇒ Cropimage
constructor
A new instance of Cropimage.
- #originalImage ⇒ Object
- #resizeImage ⇒ Object
Constructor Details
#initialize(imageUrl, imgWidth, imgHeight) ⇒ Cropimage
Returns a new instance of Cropimage.
7 8 9 10 11 |
# File 'lib/imageCropingResizing.rb', line 7 def initialize(imageUrl, imgWidth, imgHeight) @imageUrl = imageUrl @imgWidth = imgWidth @imgHeight = imgHeight end |
Instance Attribute Details
#imageUrl ⇒ Object (readonly)
Returns the value of attribute imageUrl.
6 7 8 |
# File 'lib/imageCropingResizing.rb', line 6 def imageUrl @imageUrl end |
#imgHeight ⇒ Object (readonly)
Returns the value of attribute imgHeight.
6 7 8 |
# File 'lib/imageCropingResizing.rb', line 6 def imgHeight @imgHeight end |
#imgWidth ⇒ Object (readonly)
Returns the value of attribute imgWidth.
6 7 8 |
# File 'lib/imageCropingResizing.rb', line 6 def imgWidth @imgWidth end |
Instance Method Details
#cropImage ⇒ Object
17 18 19 |
# File 'lib/imageCropingResizing.rb', line 17 def cropImage @imageUrl end |
#cropResizeImage ⇒ Object
21 22 23 |
# File 'lib/imageCropingResizing.rb', line 21 def cropResizeImage @imageUrl end |
#originalImage ⇒ Object
25 26 27 |
# File 'lib/imageCropingResizing.rb', line 25 def originalImage @imageUrl end |
#resizeImage ⇒ Object
13 14 15 |
# File 'lib/imageCropingResizing.rb', line 13 def resizeImage @imageUrl end |