# File lib/flickr/base.rb, line 83 def initialize(token_cache=nil,api_key=API_KEY, shared_secret=SHARED_SECRET, endpoint='http://www.flickr.com/services/xmlrpc/') @async = false @caching = true @auth_mode = true @api_key=api_key @shared_secret=shared_secret @token_cache = token_cache @endpoint=endpoint proto,host,port,path,user,pass=parse_url(@endpoint) raise ProtoUnknownError.new("Unhandled protocol '#{proto}'") if proto.downcase != 'http' @client=XMLRPC::Client.new(host,path,port) clear_cache end