RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

sportdb gem Adds Grounds (Stadiums/Venues) for Games (Matches) n Events (Tournaments)

Hello, The sportdb gem (and its open public domain datasets such as football.db) now includes a new grounds table (for stadiums/venues/etc.) that lets you add cities to matches or tournaments, for example. Using the World Cup event in Brazil 2014 you can get all twelve stadiums by using: event.ground.count # => 12 or to get the city for a game use: game.ground.city.title # => São Paulo and so on. See the World Cup 2014 fixtures, for an example for plain text fixtures with stadiums included. Or see the stadiums page in "The Free World Football Alamanc". More info at the project site. Cheers.

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!