= MLB.rb ==== MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues. === Get it At the command prompt, type: gem install mlb -s http://gemcutter.org === Use it $ irb >> require 'mlb' >> MLB.teams.first.name # => "Arizona Diamondbacks" >> MLB.teams.first.league # => "National League" >> MLB.teams.first.division # => "National League West" >> MLB.teams.first.manager # => "Bob Melvin" >> MLB.teams.first.wins # => 82 >> MLB.teams.first.losses # => 80 >> MLB.teams.first.founded # => 1998 >> MLB.teams.first.mascot # => nil >> MLB.teams.first.ballpark # => "Chase Field" >> MLB.teams.first.logo_url # => "http://img.freebase.com/api/trans/image_thumb/wikipedia/images/en_id/13104064" >> MLB.teams.first.players.first.name # => "Alex Romero" >> MLB.teams.first.players.first.number # => 28 >> MLB.teams.first.players.first.position # => "Right fielder" === Acknowledgements Many thanks to: * Freebase[http://www.freebase.com] * httparty[http://github.com/jnunemaker/httparty] Also, thanks to beer[http://www.21st-amendment.com].