Class: RoadForest::SourceRigor::HTTPInvestigator

Inherits:
Investigator
  • Object
show all
Defined in:
lib/roadforest/source-rigor/http-investigator.rb

Instance Method Summary collapse

Methods inherited from Investigator

registry_purpose

Methods included from Utility::ClassRegistry::Registrar

#all_names, extended, #get, #map_classes, #register, #registry

Instance Method Details

#pursue(investigation) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/roadforest/source-rigor/http-investigator.rb', line 7

def pursue(investigation)
  response = investigation.make_request("GET", investigation.context_roles[:subject])
  case response
  when HTTP::GraphResponse
    investigation.insert_graph(response.url, response.graph)
  when HTTP::UnparseableResponse
    #Do nothing
  end
end