Skip to content

cyrillefr/wrapper-api

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published