Class: App42::Storage::JSONDocument
- Inherits:
-
Object
- Object
- App42::Storage::JSONDocument
- Defined in:
- lib/storage/Storage.rb
Instance Attribute Summary collapse
-
#docId ⇒ Object
Returns the value of attribute docId.
-
#jsonDoc ⇒ Object
Returns the value of attribute jsonDoc.
Instance Method Summary collapse
-
#initialize(storage) ⇒ JSONDocument
constructor
This create the constructor and takes no parameter.
-
#to_s ⇒ Object
Returns the Storage Response in JSON format.
Constructor Details
#initialize(storage) ⇒ JSONDocument
This create the constructor and takes no parameter.
30 31 32 |
# File 'lib/storage/Storage.rb', line 30 def initialize(storage) storage.jsonDocList.push(self); end |
Instance Attribute Details
#docId ⇒ Object
Returns the value of attribute docId.
24 25 26 |
# File 'lib/storage/Storage.rb', line 24 def docId @docId end |
#jsonDoc ⇒ Object
Returns the value of attribute jsonDoc.
24 25 26 |
# File 'lib/storage/Storage.rb', line 24 def jsonDoc @jsonDoc end |
Instance Method Details
#to_s ⇒ Object
Returns the Storage Response in JSON format.
40 41 42 |
# File 'lib/storage/Storage.rb', line 40 def to_s return "#{self.docId} : #{self.jsonDoc}" end |