Class: SportDb::Stats
- Inherits:
-
Object
show all
- Includes:
- Model
- Defined in:
- lib/sportdb/stats.rb
Constant Summary
Constants included
from Model
Model::City, Model::Continent, Model::Country, Model::Prop, Model::Region
Instance Method Summary
collapse
Instance Method Details
#props ⇒ Object
22
23
24
25
26
27
|
# File 'lib/sportdb/stats.rb', line 22
def props
puts "Props:"
Prop.order( 'created_at asc' ).all.each do |prop|
puts " #{prop.key} / #{prop.value} || #{prop.created_at}"
end
end
|
#tables ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/sportdb/stats.rb', line 7
def tables
puts " #{League.count} leagues / #{Season.count} seasons"
puts " #{Event.count} events (league+season recs) / #{Round.count} rounds / #{Group.count} groups"
puts " #{Team.count} teams"
puts " #{Game.count} games"
puts " #{Badge.count} badges"
puts " #{Track.count} tracks / #{Race.count} races (track+event recs) / #{Run.count} runs"
puts " #{Record.count} records (race|run+person recs)"
puts " #{Person.count} persons / #{Roster.count} rosters (person+team+event recs)"
puts " #{Goal.count} goals (person+game recs)"
puts " #{Ground.count} grounds|stadiums"
end
|