Class: ImageCropingResizing::Cropimage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#imageUrlObject (readonly)

Returns the value of attribute imageUrl.



6
7
8
# File 'lib/imageCropingResizing.rb', line 6

def imageUrl
  @imageUrl
end

#imgHeightObject (readonly)

Returns the value of attribute imgHeight.



6
7
8
# File 'lib/imageCropingResizing.rb', line 6

def imgHeight
  @imgHeight
end

#imgWidthObject (readonly)

Returns the value of attribute imgWidth.



6
7
8
# File 'lib/imageCropingResizing.rb', line 6

def imgWidth
  @imgWidth
end

Instance Method Details

#cropImageObject



17
18
19
# File 'lib/imageCropingResizing.rb', line 17

def cropImage
  @imageUrl
end

#cropResizeImageObject



21
22
23
# File 'lib/imageCropingResizing.rb', line 21

def cropResizeImage
  @imageUrl
end

#originalImageObject



25
26
27
# File 'lib/imageCropingResizing.rb', line 25

def originalImage
  @imageUrl
end

#resizeImageObject



13
14
15
# File 'lib/imageCropingResizing.rb', line 13

def resizeImage
  @imageUrl
end