class OpenID::Yadis::DiscoveryResult
Contains the result of performing Yadis discovery on a URI
Attributes
content_type[RW]
The content-type returned with the #response_text
normalize_uri[RW]
The result of following redirects from the #request_uri
normalized_uri[RW]
request_uri[RW]
response_text[RW]
The document returned from the #xrds_uri
xrds_uri[RW]
The URI from which the response text was returned (set to nil if there was no XRDS document found)
Public Class Methods
new(request_uri)
click to toggle 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
is_xrds()
click to toggle source
Is the response text supposed to be an XRDS document?
# File lib/openid/yadis/discovery.rb, line 57 def is_xrds return (used_yadis_location?() or @content_type == YADIS_CONTENT_TYPE) end
used_yadis_location?()
click to toggle source
Was the Yadis protocol's indirection used?
# File lib/openid/yadis/discovery.rb, line 52 def used_yadis_location? return @normalized_uri != @xrds_uri end