# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42Response.rb' module App42 module Storage class Query < App42Response attr_accessor :jsonObject, :jsonArray @jsonObject @jsonArray def initialize(jsonQuery) if jsonQuery.kind_of?(Hash) self.jsonObject = jsonQuery; else self.jsonArray = jsonQuery; end end def getStr if (jsonObject != nil) return "["+jsonObject.to_s()+"]" else return jsonArray.to_s() end end def getType if (jsonObject != nil) return jsonObject else return jsonArray end end end end end