Communication with Clima Tempo accessing information about the weather of Brazil.
Installation
Add this line to your application’s Gemfile:
And then execute:
Or install it yourself as:
Usage
From Webservice
.new
Instantiating a object.The city code should be informed.
.now
Returns an object PrevisaoDia with information from the current day.
.tomorrow
Returns an object PrevisaoDia with information the next day.
.days
Returns a collection of objects PrevisaoDia with information of days referenced.
.day
Returns an object PrevisaoDia with information the day referenced.
From Page
.nowFromPage
Returns a hash of condtions of weather from page
return:
.fullFromPage
Returns a hash of condtions of weather whith 5 days from page.
return:
.trendsFromPage
Returns a hash of condtions of weather whith 5 days from page. If today is 16-12-2013 returns 21,22,23,24,25 trends.
return:
Updated May 12, 2020 2020-05-13T06:35:06+08:00