Class: RoadForest::Application
- Inherits:
-
Webmachine::Application
- Object
- Webmachine::Application
- RoadForest::Application
- Includes:
- RDF::Normalization
- Defined in:
- lib/roadforest/application.rb,
lib/roadforest/application.rb,
lib/roadforest/application/parameters.rb,
lib/roadforest/application/route-adapter.rb,
lib/roadforest/application/services-host.rb
Defined Under Namespace
Classes: Parameters, RouteAdapter, ServicesHost
Constant Summary
Constants included from RDF::Normalization
Instance Attribute Summary collapse
-
#canonical_host ⇒ Object
Returns the value of attribute canonical_host.
-
#services ⇒ Object
Returns the value of attribute services.
Instance Method Summary collapse
-
#initialize(canonical_host, services = nil, configuration = nil, dispatcher = nil) ⇒ Application
constructor
A new instance of Application.
- #setup ⇒ Object
Methods included from RDF::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(canonical_host, services = nil, configuration = nil, dispatcher = nil) ⇒ Application
Returns a new instance of Application.
18 19 20 21 22 23 24 25 26 |
# File 'lib/roadforest/application.rb', line 18 def initialize(canonical_host, services = nil, configuration = nil, dispatcher = nil) @canonical_host = normalize_resource(canonical_host) configuration ||= Webmachine::Configuration.default dispatcher ||= Dispatcher.new(self) super(configuration, dispatcher) self.services = services unless services.nil? setup end |
Instance Attribute Details
#canonical_host ⇒ Object
Returns the value of attribute canonical_host.
31 32 33 |
# File 'lib/roadforest/application.rb', line 31 def canonical_host @canonical_host end |
#services ⇒ Object
Returns the value of attribute services.
31 32 33 |
# File 'lib/roadforest/application.rb', line 31 def services @services end |
Instance Method Details
#setup ⇒ Object
28 29 |
# File 'lib/roadforest/application.rb', line 28 def setup end |