Class: OpenID::Server::OpenIDRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/openid/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOpenIDRequest

I represent an incoming OpenID request.

Attributes:

mode

The “openid.mode” of this request



35
36
37
38
# File 'lib/openid/server.rb', line 35

def initialize
  @mode = nil
  @message = nil
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



29
30
31
# File 'lib/openid/server.rb', line 29

def message
  @message
end

#modeObject

Returns the value of attribute mode.



29
30
31
# File 'lib/openid/server.rb', line 29

def mode
  @mode
end

Instance Method Details

#namespaceObject



40
41
42
43
44
45
46
# File 'lib/openid/server.rb', line 40

def namespace
  if @message.nil?
    raise RuntimeError, "Request has no message"
  else
    return @message.get_openid_namespace
  end
end