Sha256: 222ea75d58495c0b8688c9109c824a45f1f09059b2bc360bddb7a6488dab91d6
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
# ----------------------------------------------------------------------- # 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_RUBY_SDK-0.8.3 | lib/storage/Query.rb |