Module: GirlWorld
- Defined in:
- lib/girl_world.rb
Overview
require ‘girl_world’
Class Method Summary collapse
-
.high_school_ratio(country) ⇒ Object
By default, the GNI call above gives all the data available.
- .high_school_ratio_date(country, start_year, end_year) ⇒ Object
Instance Method Summary collapse
Class Method Details
.high_school_ratio(country) ⇒ Object
By default, the GNI call above gives all the data available. If you want just the GNI data from, say, 1960 to 1970 api.worldbank.org/countries/br/indicators/NY.GNP.PCAP.CD?date=1960:1970
34 35 36 |
# File 'lib/girl_world.rb', line 34 def self.high_school_ratio(country) HTTParty.get("http://api.worldbank.org/countries/#{country}/indicators/SE.ENR.PRSC.FM.ZS?&format=json") end |
.high_school_ratio_date(country, start_year, end_year) ⇒ Object
38 39 40 |
# File 'lib/girl_world.rb', line 38 def self.high_school_ratio_date(country, start_year, end_year) HTTParty.get("http://api.worldbank.org/countries/#{country}/indicators/SE.ENR.PRSC.FM.ZS?date=#{start_year}:#{end_year}&format=json") end |
Instance Method Details
#poplution(country) ⇒ Object
43 44 45 |
# File 'lib/girl_world.rb', line 43 def poplution(country) end |