class App42::Storage::JSONDocument
Attributes
docId[RW]
jsonDoc[RW]
Public Class Methods
new(storage)
click to toggle source
This create the constructor and takes no parameter.
# File lib/storage/Storage.rb, line 30 def initialize(storage) storage.jsonDocList.push(self); end
Public Instance Methods
to_s()
click to toggle source
Returns the Storage
Response in JSON format.
@return the response in JSON format.
# File lib/storage/Storage.rb, line 40 def to_s return "#{self.docId} : #{self.jsonDoc}" end