Sha256: c5c582b8a1edc90ce21722deca655360101993557e9de6827919c27ac4688e93
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'json/pure' require 'App42_Ruby_API/App42ResponseBuilder' require 'imageProcessor/Image' module App42 module ImageProcessor # # # ImageProcessResponseBuilder class converts the JSON response retrieved from # the server to the value object i.e Image # # class ImageProcessorResponseBuilder < App42ResponseBuilder # # Converts the response in JSON format to the value object i.e Image # # @param json # - response in JSON format # # @return Image object filled with json data # # def buildResponse(json) imageJSONObj = getServiceJSONObject("image", json) imageObj = Image.new imageObj.strResponse=json imageObj.isResponseSuccess= isResponseSuccess(json) buildObjectFromJSONTree(imageObj, imageJSONObj); return imageObj end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_Ruby_API-0.8.4 | lib/imageProcessor/ImageProcessorResponseBuilder.rb |