Class: OpenID::Server::BaseServerSession
- Inherits:
-
Object
- Object
- OpenID::Server::BaseServerSession
- Defined in:
- lib/openid/server.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#session_type ⇒ Object
readonly
Returns the value of attribute session_type.
Instance Method Summary collapse
- #allowed_assoc_type?(typ) ⇒ Boolean
-
#initialize(session_type, allowed_assoc_types) ⇒ BaseServerSession
constructor
A new instance of BaseServerSession.
Constructor Details
#initialize(session_type, allowed_assoc_types) ⇒ BaseServerSession
Returns a new instance of BaseServerSession.
160 161 162 163 |
# File 'lib/openid/server.rb', line 160 def initialize(session_type, allowed_assoc_types) @session_type = session_type @allowed_assoc_types = allowed_assoc_types.dup.freeze end |
Instance Attribute Details
#session_type ⇒ Object (readonly)
Returns the value of attribute session_type.
158 159 160 |
# File 'lib/openid/server.rb', line 158 def session_type @session_type end |
Instance Method Details
#allowed_assoc_type?(typ) ⇒ Boolean
165 166 167 |
# File 'lib/openid/server.rb', line 165 def allowed_assoc_type?(typ) @allowed_assoc_types.member?(typ) end |