Sha256: e748a9953228c397e0ab0d44cdd02cb7ccdd1484a31a9094229e753c6020a8b3

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 Bytes

Contents

module SportDb

  class Stats
    include Models

    def tables
      puts "  #{League.count} leagues  /  #{Season.count} seasons"
      puts "  #{Event.count} events (league+season recs)  /  #{Round.count} rounds  /  #{Group.count} groups  /  #{Stage.count} stages"
      puts "  #{Team.count} teams"
      puts "  #{Match.count} matches"
      puts "  #{Badge.count} badges"

      puts "  #{Lineup.count} lineups (person+team+event recs)"
      puts "  #{Goal.count} goals (person+match recs)"

      puts "  #{Assoc.count}  assocs|orgs"
      puts "  #{Ground.count}  grounds|stadiums"
    end

  end  # class Stats

end  # module SportDb

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sportdb-models-2.1.0 lib/sportdb/models/stats.rb
sportdb-models-2.0.3 lib/sportdb/models/stats.rb
sportdb-models-2.0.2 lib/sportdb/models/stats.rb
sportdb-models-2.0.1 lib/sportdb/models/stats.rb
sportdb-models-2.0.0 lib/sportdb/models/stats.rb