from_discovery_result (OpenID::OpenIDServiceEndpoint)

    # File lib/openid/consumer/discovery.rb, line 205
        def self.from_discovery_result(discoveryResult)
          # Create endpoints from a DiscoveryResult.
          #
          # @type discoveryResult: L{DiscoveryResult}
          #
          # @rtype: list of L{OpenIDServiceEndpoint}
          #
          # @raises L{XRDSError}: When the XRDS does not parse.
          if discoveryResult.is_xrds()
            meth = self.method('from_xrds')
          else
            meth = self.method('from_html')
          end

          return meth.call(discoveryResult.normalized_uri,
                           discoveryResult.response_text)
        end