Class: Trio::Blog::API::DocumentReader
- Inherits:
-
Object
- Object
- Trio::Blog::API::DocumentReader
- Defined in:
- lib/trio/blog/api/document_reader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Instance Method Summary collapse
-
#initialize(document, config) ⇒ DocumentReader
constructor
A new instance of DocumentReader.
Constructor Details
#initialize(document, config) ⇒ DocumentReader
7 8 9 10 |
# File 'lib/trio/blog/api/document_reader.rb', line 7 def initialize(document, config) @document = document @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/trio/blog/api/document_reader.rb', line 5 def config @config end |
#document ⇒ Object (readonly)
Returns the value of attribute document.
5 6 7 |
# File 'lib/trio/blog/api/document_reader.rb', line 5 def document @document end |