Class: Wettr::WeatherAPI
- Inherits:
-
Object
- Object
- Wettr::WeatherAPI
- Includes:
- HTTParty
- Defined in:
- lib/wettr/weather_api.rb
Class Method Summary collapse
Class Method Details
.call_with_lat_and_lon(lat:, lon:) ⇒ Object
6 7 8 9 |
# File 'lib/wettr/weather_api.rb', line 6 def self.call_with_lat_and_lon(lat:, lon:) @options = { query: { lat: lat, lon: lon } } call end |
.call_with_zip(zip) ⇒ Object
11 12 13 14 |
# File 'lib/wettr/weather_api.rb', line 11 def self.call_with_zip(zip) @options = { query: { zip: zip } } call end |