Class: App42::ImageProcessor::Image

Inherits:
App42Response show all
Defined in:
lib/imageProcessor/Image.rb

Instance Attribute Summary collapse

Attributes inherited from App42Response

#isResponseSuccess, #strResponse, #totalRecords

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def action
  @action
end

#convertedImageObject

Returns the value of attribute convertedImage.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def convertedImage
  @convertedImage
end

#convertedImageTinyUrlObject

Returns the value of attribute convertedImageTinyUrl.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def convertedImageTinyUrl
  @convertedImageTinyUrl
end

#heightObject

Returns the value of attribute height.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def height
  @height
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def name
  @name
end

#originalImageObject

Returns the value of attribute originalImage.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def originalImage
  @originalImage
end

#originalImageTinyUrlObject

Returns the value of attribute originalImageTinyUrl.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def originalImageTinyUrl
  @originalImageTinyUrl
end

#percentageObject

Returns the value of attribute percentage.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def percentage
  @percentage
end

#widthObject

Returns the value of attribute width.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def width
  @width
end

#xObject

Returns the value of attribute x.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def x
  @x
end

#yObject

Returns the value of attribute y.



16
17
18
# File 'lib/imageProcessor/Image.rb', line 16

def y
  @y
end

Instance Method Details

#to_sObject

Returns the Image Response in JSON format.

Returns:

  • the response in JSON format.



36
37
38
# File 'lib/imageProcessor/Image.rb', line 36

def to_s
  return  "Name : #{@name}" + "Action : #{@action}" + "originalImage : #{@originalImage}" + "convertedImage : #{@convertedImage}" + "percentage : #{@percentage}" + "width : #{@width}" + "height : #{@height}" + "x : #{@x}" + "y : #{@y}";
end