Class: RoadForest::Application

Inherits:
Webmachine::Application
  • Object
show all
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

RDF::Normalization::Vocabs

Instance Attribute Summary collapse

Instance Method Summary collapse

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_hostObject

Returns the value of attribute canonical_host.



31
32
33
# File 'lib/roadforest/application.rb', line 31

def canonical_host
  @canonical_host
end

#servicesObject

Returns the value of attribute services.



31
32
33
# File 'lib/roadforest/application.rb', line 31

def services
  @services
end

Instance Method Details

#setupObject



28
29
# File 'lib/roadforest/application.rb', line 28

def setup
end