Module: SportDb::Service

Defined in:
lib/sportdb/service.rb,
lib/sportdb/service/server.rb,
lib/sportdb/service/version.rb

Defined Under Namespace

Classes: Server

Constant Summary collapse

VERSION =

todo: use same version for now as containing spordb gem? why? why not??

'0.4.0'

Class Method Summary collapse

Class Method Details



21
22
23
# File 'lib/sportdb/service.rb', line 21

def self.banner
  "sportdb-service #{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] on Sinatra/#{Sinatra::VERSION} (#{ENV['RACK_ENV']})"
end

.rootObject

fix: move to SportDb



26
27
28
# File 'lib/sportdb/service.rb', line 26

def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end