Created
March 19, 2015 22:53
-
-
Save elskwid/23cc3e04fecab4bfb337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# our list of countries created using a "literal" array and hashes. | |
countries = [ | |
{ | |
"id" => "AGO", | |
"name" => "Angola", | |
"population" => 21_471_618, | |
"capital" => "Luanda", | |
"latitude" => -8.81155, | |
"longitude" => 13.242, | |
"income_level" => "Upper Middle", | |
"high_income" => false | |
}, | |
{ | |
"id" => "ATG", | |
"name" => "Antigua and Barbuda", | |
"population" => 89_985, | |
"capital" => "Saint John's", | |
"latitude" => 17.1175, | |
"longitude" => -61.8456, | |
"income_level" => "High", | |
"high_income" => true | |
}, | |
{ | |
"id" => "BLR", | |
"name" => "Belarus", | |
"population" => 9_466_000, | |
"capital" => "Minsk", | |
"latitude" => 53.9678, | |
"longitude" => 27.5766, | |
"income_level" => "Upper Middle", | |
"high_income" => false | |
}, | |
{ | |
"id" => "CAF", | |
"name" => "Central African Republic", | |
"population" => 4_616_417, | |
"capital" => "Bangui", | |
"latitude" => 5.63056, | |
"longitude" => 21.6407, | |
"income_level" => "Low", | |
"high_income" => false | |
}, | |
{ | |
"id" => "CHE", | |
"name" => "Switzerland", | |
"population" => 8_081_482, | |
"capital" => "Bern", | |
"latitude" => 46.948, | |
"longitude" => 7.44821, | |
"income_level" => "High", | |
"high_income" => true | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment