Class: SAML::Session
- Inherits:
-
Object
- Object
- SAML::Session
- Defined in:
- lib/saml/session.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #add_participant(service_provider) ⇒ Object
-
#initialize(id) ⇒ Session
constructor
A new instance of Session.
- #logout_participants ⇒ Object
Constructor Details
#initialize(id) ⇒ Session
Returns a new instance of Session.
7 8 9 10 |
# File 'lib/saml/session.rb', line 7 def initialize(id) @id = id @participants = [] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/saml/session.rb', line 5 def id @id end |
Instance Method Details
#add_participant(service_provider) ⇒ Object
12 13 14 |
# File 'lib/saml/session.rb', line 12 def add_participant(service_provider) @participants << service_provider end |
#logout_participants ⇒ Object
16 17 18 |
# File 'lib/saml/session.rb', line 16 def logout_participants @participants.each { |p| p.logout(@id) } end |