module GirlWorld
require ‘girl_world’
Public Class Methods
high_school_ratio(country)
click to toggle source
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
# 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)
click to toggle source
# 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
Public Instance Methods
poplution(country)
click to toggle source
# File lib/girl_world.rb, line 43 def poplution(country) end