lib/rets/client.rb
def login
      res = http_get(login_url)
      Parser::ErrorChecker.check(res)

      client_progress.login

      new_capabilities = extract_capabilities(Nokogiri.parse(res.body))
      unless new_capabilities
        raise UnknownResponse, "Cannot read rets server capabilities."
      end
      @capabilities = new_capabilities
    end
# Attempts to login by making an empty request to the URL provided in
# initialize. Returns the capabilities that the RETS server provides, per
# page 34 of http://www.realtor.org/retsorg.nsf/retsproto1.7d6.pdf#page=34
Attempts to login by making an empty request to the URL provided in
initialize.
Attempts to login by making an empty request to the URL provided in initialize .
def login
      res = http_get(login_url)
      Parser::ErrorChecker.check(res)
      client_progress.login
      new_capabilities = extract_capabilities(Nokogiri.parse(res.body))
      unless new_capabilities
        raise UnknownResponse, "Cannot read rets server capabilities."
      end
      @capabilities = new_capabilities
    end
def login res = http_get ( login_url ) Parser :: ErrorChecker . check ( res ) client_progress . login new_capabilities = extract_capabilities ( Nokogiri . parse ( res . body ) ) unless new_capabilities raise UnknownResponse , "Cannot read rets server capabilities." end @capabilities = new_capabilities end
Attempts to login by making an empty request to the URL provided in
initialize.
Attempts to login by making an empty request to the URL provided in initialize .