Class: SAML::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (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_participantsObject



16
17
18
# File 'lib/saml/session.rb', line 16

def logout_participants
  @participants.each { |p| p.logout(@id) }
end