Class: Trio::Blog::API::DocumentReader

Inherits:
Object
  • Object
show all
Defined in:
lib/trio/blog/api/document_reader.rb

Direct Known Subclasses

PostAttributes, PostReader, PostSelectors

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/trio/blog/api/document_reader.rb', line 5

def config
  @config
end

#documentObject (readonly)

Returns the value of attribute document.



5
6
7
# File 'lib/trio/blog/api/document_reader.rb', line 5

def document
  @document
end