Class: RoadForest::TestSupport::RemoteHost

Inherits:
RemoteHost
  • Object
show all
Defined in:
lib/roadforest/test-support/remote-host.rb

Constant Summary

Constants included from Graph::Normalization

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

Methods included from Graph::Normalization

#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

Returns a new instance of 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_storeObject



11
12
13
# File 'lib/roadforest/test-support/remote-host.rb', line 11

def build_graph_store
  RoadForest::SourceRigor::GraphStore.new
end

#http_clientObject



15
16
17
# File 'lib/roadforest/test-support/remote-host.rb', line 15

def http_client
  @http_client ||= HTTPClient.new(@app, @url)
end

#http_exchangesObject



19
20
21
# File 'lib/roadforest/test-support/remote-host.rb', line 19

def http_exchanges
  http_client.exchanges
end