Module: WeatherInfo::WeatherMethods

Included in:
CurrentWeather, ForecastInfo, Weather, WeatherForecast
Defined in:
lib/weather_by_ip/weather.rb

Instance Method Summary collapse

Instance Method Details

#get_icon_path(icon) ⇒ Object



14
15
16
# File 'lib/weather_by_ip/weather.rb', line 14

def get_icon_path icon
  "#{URL.chomp('/')}/#{icon}"
end

#to_sObject



11
12
13
# File 'lib/weather_by_ip/weather.rb', line 11

def to_s
  inspect
end