Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.95 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.95 KB

Search for weather forecast for today

A wrapper for the openweather API. Built upon Faraday http client. A demo of OOP.

OOP with use of Strategy patterns, Factory pattern and delegation(from class to instance).

Open/Closed Principle: each new forecast type (5 days, 10 days etc ...) can be easily add with the factory service_builder_factory. Which uses factories defined in a file current_uri_builder. Current is the current type forecast(24h).

Service call -> get on wrapper weather_service -> get on Faraday connection connection object

Also:

Demo live at Heroku