Module: SportDb::Module::Models

Defined in:
lib/sportdb/models/version.rb

Constant Summary collapse

MAJOR =
2
MINOR =
1
PATCH =
0
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



13
14
15
# File 'lib/sportdb/models/version.rb', line 13

def self.banner
  "sportdb-models/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
end

.rootObject



17
18
19
# File 'lib/sportdb/models/version.rb', line 17

def self.root
  File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )
end

.versionObject



9
10
11
# File 'lib/sportdb/models/version.rb', line 9

def self.version
  VERSION
end