Class: RoadForest::TestSupport::RemoteHost
Constant Summary
Graph::Normalization::Vocabs
Instance Attribute Summary
Attributes inherited from RemoteHost
#grant_list_pattern, #url
Instance Method Summary
collapse
Methods inherited from RemoteHost
#add_credentials, #anneal, #forbidden?, #getting, #graph_trace=, #graph_transfer, #http_trace=, #posting, #prepared_credential_source, #put_file, #putting, #render_graph, #source_rigor, #transaction, #use_ca_cert, #use_client_tls, #user_agent
#expand_curie, #expand_curie_pair, #interned_uri, #literal, #normalize_context, #normalize_property, #normalize_resource, #normalize_statement, #normalize_term, #normalize_tuple, #normalize_uri, #relevant_prefixes_for_graph, #root_url, #uri, #vocabularies_in_graph
Constructor Details
#initialize(services) ⇒ RemoteHost
6
7
8
9
|
# File 'lib/roadforest/test-support/remote-host.rb', line 6
def initialize(services)
@app = RoadForest::Application.new(services)
super(services.canonical_host)
end
|
Instance Method Details
#build_graph_store ⇒ Object
11
12
13
|
# File 'lib/roadforest/test-support/remote-host.rb', line 11
def build_graph_store
RoadForest::SourceRigor::GraphStore.new
end
|
#http_client ⇒ Object
15
16
17
|
# File 'lib/roadforest/test-support/remote-host.rb', line 15
def http_client
@http_client ||= HTTPClient.new(@app, @url)
end
|
#http_exchanges ⇒ Object
19
20
21
|
# File 'lib/roadforest/test-support/remote-host.rb', line 19
def http_exchanges
http_client.exchanges
end
|