Class: Aoororachain::Document
- Inherits:
-
Object
- Object
- Aoororachain::Document
- Defined in:
- lib/aoororachain/document.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(content, metadata = {}) ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(content, metadata = {}) ⇒ Document
Returns a new instance of Document.
7 8 9 10 |
# File 'lib/aoororachain/document.rb', line 7 def initialize(content, = {}) @content = content @metadata = end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
5 6 7 |
# File 'lib/aoororachain/document.rb', line 5 def content @content end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/aoororachain/document.rb', line 5 def @metadata end |