Sha256: 3a6f864d2c1558596144090103ba77e0b60a79d8ceb519c2916ca0eeeb7d7f0f
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_Ruby_API-0.8.4 | lib/storage/Query.rb |