What's the best way to regularly check an API for new data and save it to a rails application?
===

I am building a simple app that stores data fetched from the Google Analytics API and presents it in a dashboard. Right now I am just checking if there is any new data once a day and then saving it to the database.

I was wondering if there were any best practices for this kind of interaction? Any guidelines, tutorials or great gems would be really appreciated.