# File lib/contacts/base.rb, line 30 def contacts(options = {}) return @contacts if @contacts if connected? url = URI.parse(contact_list_url) http = open_http(url) resp, data = http.get("#{url.path}?#{url.query}", "Cookie" => @cookies ) if resp.code_type != Net::HTTPOK raise ConnectionError, self.class.const_get(:PROTOCOL_ERROR) end parse(data, options) end end