# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42Response.rb' # # # This Review object is the value object which contains the properties of # Review. # # module App42 module Review class Review < App42Response attr_accessor :userId, :itemId,:status,:reviewId,:comment,:rating,:createdOn @userId @itemId @status @reviewId @comment @rating @createdOn # # Returns the User Response in JSON format. # # @return the response in JSON format. # def to_s return "UserId : #{@userId}" + "ItemId : #{@itemId}" + "Status : #{@status}" + "Review ID : #{@reviewId}" + "Comment + #{@comment}" + "Rating : #{@rating}" + "Created On : #{@creartedOn}"; end end end end