Class: AngieCoreApi::Weather

Inherits:
Object
  • Object
show all
Defined in:
lib/angie-core-api/weather.rb

Class Method Summary collapse

Class Method Details

.info(latitude, longitude, unit, date, locale) ⇒ Object



5
6
7
8
9
# File 'lib/angie-core-api/weather.rb', line 5

def self.info(latitude, longitude, unit, date, locale)
  url = "/weather/coordination/#{latitude}/#{longitude}/#{unit}/#{locale}"
  url += "?date=#{date}" if date&.present?
  Client.data(:get, url)
end