Class: RoadForest::TestSupport::RemoteHost
- Inherits:
-
RemoteHost
- Object
- RemoteHost
- RoadForest::TestSupport::RemoteHost
- Defined in:
- lib/roadforest/test-support/remote-host.rb
Constant Summary
Constants included from Graph::Normalization
Instance Attribute Summary
Attributes inherited from RemoteHost
Instance Method Summary collapse
- #build_graph_store ⇒ Object
- #http_client ⇒ Object
- #http_exchanges ⇒ Object
-
#initialize(services) ⇒ RemoteHost
constructor
A new instance of RemoteHost.
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_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 |