Sha256: 2ac57a876fe02de7435fd805422f3cd355bfb2f9e73918f7d1e58e32366e2bbf
Contents?: true
Size: 1004 Bytes
Versions: 1
Compression:
Stored size: 1004 Bytes
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42Response.rb' # # # This Storage object is the value object which contains the properties of # Storage. # # module App42 module Storage class Storage < App42Response attr_accessor :dbName, :collectionName,:jsonDocList @dbName @collectionName @jsonDocList = Array.new end class JSONDocument attr_accessor :jsonDoc, :docId @jsonDoc @docId # # This create the constructor and takes no parameter. # def initialize(storage) storage.jsonDocList.push(self); end # # Returns the Storage Response in JSON format. # # @return the response in JSON format. # def to_s return "#{self.docId} : #{self.jsonDoc}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_RUBY_SDK-0.8.3 | lib/storage/Storage.rb |