Sha256: b5cb286fd27b64caebfb8294a0d9e77d4afd6851bc978b6f6732816047537299

Contents?: true

Size: 1016 Bytes

Versions: 1

Compression:

Stored size: 1016 Bytes

Contents

# -----------------------------------------------------------------------
#  Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
# -----------------------------------------------------------------------

require 'App42_Ruby_API/App42Response'

#
#
# 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_API-0.8.4 lib/storage/Storage.rb