Class: Fetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/cli-weather.rb

Class Method Summary collapse

Class Method Details

.get(input) ⇒ Object



5
6
7
8
9
10
# 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