class Fetcher
Public Class Methods
get(input)
click to toggle source
# File lib/cli-weather.rb, line 5 def self.get(input) city = input.gsub(" ", "") puts "Getting the weather now" weather = `curl "cli-weather.herokuapp.com/infos/#{city}"` puts weather end