class OpenID::Yadis::DiscoveryResult
Contains the result of performing Yadis discovery on a URI
Attributes
The content-type returned with the response_text
The result of following redirects from the request_uri
The document returned from the xrds_uri
The URI from which the response text was returned (set to nil if there was no XRDS document found)
Public Class Methods
Source
# File lib/openid/yadis/discovery.rb, line 40 def initialize(request_uri) # Initialize the state of the object # # sets all attributes to None except the request_uri @request_uri = request_uri @normalized_uri = nil @xrds_uri = nil @content_type = nil @response_text = nil end
Public Instance Methods
Source
# File lib/openid/yadis/discovery.rb, line 57 def is_xrds return (used_yadis_location?() or @content_type == YADIS_CONTENT_TYPE) end
Is the response text supposed to be an XRDS document?
Source
# File lib/openid/yadis/discovery.rb, line 52 def used_yadis_location? return @normalized_uri != @xrds_uri end
Was the Yadis protocol’s indirection used?