Class: AMON::DocumentPart Abstract
- Inherits:
-
Object
- Object
- AMON::DocumentPart
- Includes:
- JSONHelper
- Defined in:
- lib/amon/document_part.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parent ⇒ Document
readonly
The parent document of which this object is a part.
Attributes included from JSONHelper
Instance Method Summary collapse
-
#initialize(parent, json) ⇒ DocumentPart
constructor
A new instance of DocumentPart.
Constructor Details
#initialize(parent, json) ⇒ DocumentPart
Returns a new instance of DocumentPart.
14 15 16 |
# File 'lib/amon/document_part.rb', line 14 def initialize(parent, json) @parent, @json = parent, json end |
Instance Attribute Details
#parent ⇒ Document (readonly)
Returns The parent document of which this object is a part.
10 11 12 |
# File 'lib/amon/document_part.rb', line 10 def parent @parent end |