Sha256: 7fe44e7589d9325582dd9e01634b2bd0ec6a40c7d1d6a3f3510ec831130b4a45
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
require "population_growth/version" require "thor" require "httparty" module PopulationGrowth class CLI < Thor desc "getPopData [zip]", "Describe population data based on zip" def getPopData(zip) response = HTTParty.get("https://alvin-pop-growth-api.herokuapp.com/", :query => {:zip => zip}) puts response.body end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alvin_population_growth-0.2.0 | lib/population_growth.rb |