Class: Aoororachain::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/aoororachain/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



5
6
7
# File 'lib/aoororachain/document.rb', line 5

def content
  @content
end

#metadataObject (readonly)

Returns the value of attribute metadata.



5
6
7
# File 'lib/aoororachain/document.rb', line 5

def 
  @metadata
end