Class: RoadForest::Graph::Document

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

Overview

Wrapper for text to be parsed into RDF

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocument

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

#bodyObject

Returns the value of attribute body.



7
8
9
# File 'lib/roadforest/graph/document.rb', line 7

def body
  @body
end

#body_stringObject

Returns the value of attribute body_string.



7
8
9
# File 'lib/roadforest/graph/document.rb', line 7

def body_string
  @body_string
end

#codeObject

Returns the value of attribute code.



7
8
9
# File 'lib/roadforest/graph/document.rb', line 7

def code
  @code
end

#content_typeObject

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_urlObject

Returns the value of attribute root_url.



7
8
9
# File 'lib/roadforest/graph/document.rb', line 7

def root_url
  @root_url
end

#sourceObject

Returns the value of attribute source.



7
8
9
# File 'lib/roadforest/graph/document.rb', line 7

def source
  @source
end