Class: Owa::Current
- Inherits:
-
Object
- Object
- Owa::Current
- Defined in:
- lib/owa/current.rb
Class Method Summary collapse
Class Method Details
.by_city(city, country_code = nil) ⇒ Object
3 4 5 |
# File 'lib/owa/current.rb', line 3 def self.by_city(city, country_code=nil) get_weather_with(Requests::Options::City.new(city, country_code)) end |
.by_geocode(lon, lat) ⇒ Object
7 8 9 |
# File 'lib/owa/current.rb', line 7 def self.by_geocode(lon, lat) get_weather_with(Requests::Options::Geocode.new(lon, lat)) end |