Class: RoadForest::Graph::Document
- Inherits:
-
Object
- Object
- RoadForest::Graph::Document
- Defined in:
- lib/roadforest/graph/document.rb
Overview
Wrapper for text to be parsed into RDF
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#body_string ⇒ Object
Returns the value of attribute body_string.
-
#code ⇒ Object
Returns the value of attribute code.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#root_url ⇒ Object
Returns the value of attribute root_url.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize ⇒ Document
Returns a new instance of Document.
8 9 10 11 12 |
# File 'lib/roadforest/graph/document.rb', line 8 def initialize @content_type = "text/html" @code = 200 @body_string = "" end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
7 8 9 |
# File 'lib/roadforest/graph/document.rb', line 7 def body @body end |
#body_string ⇒ Object
Returns the value of attribute body_string.
7 8 9 |
# File 'lib/roadforest/graph/document.rb', line 7 def body_string @body_string end |
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/roadforest/graph/document.rb', line 7 def code @code end |
#content_type ⇒ Object
Returns the value of attribute content_type.
7 8 9 |
# File 'lib/roadforest/graph/document.rb', line 7 def content_type @content_type end |
#root_url ⇒ Object
Returns the value of attribute root_url.
7 8 9 |
# File 'lib/roadforest/graph/document.rb', line 7 def root_url @root_url end |
#source ⇒ Object
Returns the value of attribute source.
7 8 9 |
# File 'lib/roadforest/graph/document.rb', line 7 def source @source end |