In my rails application I use some external web services: twitter, google picasa, flickr etc.
Where should I put code related to processing responses of these services?
In my rails application I use some external web services: twitter, google picasa, flickr etc.
Where should I put code related to processing responses of these services?
You can create abstract models (non-persistent) for each of these so each abstract model can be responsible for processing requests and so forth.
Data structure could look like this:
app/models/web_services/
google.rb
twitter.rb