class RoadForest::Graph::Document

Wrapper for text to be parsed into RDF

Attributes

body[RW]
body_string[RW]
code[RW]
content_type[RW]
root_url[RW]
source[RW]

Public Class Methods

new() click to toggle source
# File lib/roadforest/graph/document.rb, line 8
def initialize
  @content_type = "text/html"
  @code = 200
  @body_string = ""
end

Public Instance Methods

body_string=(value) click to toggle source
# File lib/roadforest/graph/document.rb, line 14
def body_string=(value)
  @body_string = value
  @body = nil
end