class OpenWeatherAPI::Resources::ForecastHourly

Public Instance Methods

base_url() click to toggle source
# File lib/open-weather-api/resources/forecast_hourly.rb, line 5
def base_url
  return super + 'forecast/'
end
build_params(parameters = {}) click to toggle source
# File lib/open-weather-api/resources/forecast_hourly.rb, line 9
def build_params(parameters = {})
  super [city, city_id, geolocation].each{ |h| break h.handle if h.can? }
end
city() click to toggle source

Simple handlers

# File lib/open-weather-api/resources/forecast_hourly.rb, line 14
def city
  Handlers::City.new @api_obj, @parameters
end
city_id() click to toggle source
# File lib/open-weather-api/resources/forecast_hourly.rb, line 18
def city_id
  Handlers::CityID.new @api_obj, @parameters
end
geolocation() click to toggle source
# File lib/open-weather-api/resources/forecast_hourly.rb, line 22
def geolocation
  Handlers::Geolocation.new @api_obj, @parameters
end