Class: Buffet::FlickrProxy
- Inherits:
-
Proxy
- Object
- Proxy
- Buffet::FlickrProxy
- Defined in:
- lib/buffet.rb
Overview
#########################################################
The individual service proxies implement the methods in the Proxy interface. This is where we make the actual API call. These methods are responsible for parsing the JSON/XML response and returning pure types.
We may want to specify what types of media this service returns, so we don't have to hit photo services when we're interested in videos. Though, maybe we can do that by having a photo service return an empty result set for a find_videos method.
The proxy is responsible for anything else service-specific. Eg, flickr requests are signed with a hash of the parameters you're passing. That would happen in the proxy.