Green Ruby News #81 greenruby.org
Like every week, here is a fresh list of the links from last week on Green Ruby News #81.
require 'worldlite'; include WorldLiteand
>> WORLD.size # => 245
>> WORLD_UN.size # => 193
>> WORLD_G20.size # => 20
>> AT.class.name # => WorldLite::Country
>> AT.name # => Austria
>> AT.alpha3 # => AUT
.pluckif you only need a subset of model attributes. Check it.
MyGem.configure do ... endconfiguration functionality (plus bonus).
MyGem.configure do ... endidiom, everybody has their own version of doing it, or is at least is copy-pasting the same code into the gem.
football.db- in your folder, than just type
$ sportweband that's it - open your browser (e.g. use
localhost:3000) and start browsing your local SQLite sports database. Cheers.
event/en.2014_15/round/1and so on or better build your own HTTP JSON API using the starter kit. All data, code and samples public domain. Enjoy. Cheers.