Class: Saml::Elements::Subject
- Inherits:
-
Object
- Object
- Saml::Elements::Subject
- Includes:
- Base
- Defined in:
- lib/saml/elements/subject.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Subject
constructor
A new instance of Subject.
- #name_id ⇒ Object
- #name_id=(value) ⇒ Object
- #name_id_format ⇒ Object
Constructor Details
#initialize(*args) ⇒ Subject
Returns a new instance of Subject.
19 20 21 22 23 24 25 26 |
# File 'lib/saml/elements/subject.rb', line 19 def initialize(*args) = args. @_name_id = Saml::Elements::NameId.new(format: .delete(:name_id_format), value: .delete(:name_id)) @subject_confirmation = Saml::Elements::SubjectConfirmation.new(recipient: .delete(:recipient), in_response_to: .delete(:in_response_to)) super(*(args << )) end |
Instance Method Details
#name_id ⇒ Object
28 29 30 |
# File 'lib/saml/elements/subject.rb', line 28 def name_id @_name_id.value end |
#name_id=(value) ⇒ Object
32 33 34 |
# File 'lib/saml/elements/subject.rb', line 32 def name_id=(value) @_name_id.value = value end |
#name_id_format ⇒ Object
36 37 38 |
# File 'lib/saml/elements/subject.rb', line 36 def name_id_format @_name_id.format end |