# File lib/flickr/blogs.rb, line 5 def getList() return @flickr.blog_cache_lookup if @flickr.blog_cache_lookup res = @flickr.call_method('flickr.blogs.getList') list = [] res.elements['/blogs'].each_element do |e| att = e.attributes list << Flickr::Blog.new(att['id'], att['name'], att['needspassword'].to_i == 1, att['url']) end @flickr.blog_cache_store(list) return list end