Sha256: f6fa8f2ff8b1223d3d466527e9b8d80782e587fc7b7618c77fdbf17f770f1f80
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' # # # This Image object is the value object which contains the properties of Image. # # module App42 module ImageProcessor class Image < App42Response attr_accessor :name, :action, :originalImage, :convertedImage, :percentage, :width, :height, :x, :y, :originalImageTinyUrl, :convertedImageTinyUrl @name @action @originalImage @convertedImage @percentage @width @height @x @y @convertedImageTinyUrl @originalImageTinyUrl # # Returns the Image Response in JSON format. # # @return the response in JSON format. # # def to_s return "Name : #{@name}" + "Action : #{@action}" + "originalImage : #{@originalImage}" + "convertedImage : #{@convertedImage}" + "percentage : #{@percentage}" + "width : #{@width}" + "height : #{@height}" + "x : #{@x}" + "y : #{@y}"; end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_Ruby_API-0.8.4 | lib/imageProcessor/Image.rb |