Class: SAML::Core::LogoutRequest
- Inherits:
-
RequestAbstract
- Object
- RequestAbstract
- SAML::Core::LogoutRequest
- Defined in:
- lib/saml/core/logout_request.rb
Instance Attribute Summary collapse
-
#name_id ⇒ Object
Returns the value of attribute name_id.
Attributes inherited from RequestAbstract
#id, #issue_instant, #issuer, #version
Instance Method Summary collapse
Methods inherited from RequestAbstract
Constructor Details
This class inherits a constructor from SAML::Core::RequestAbstract
Instance Attribute Details
#name_id ⇒ Object
Returns the value of attribute name_id.
5 6 7 |
# File 'lib/saml/core/logout_request.rb', line 5 def name_id @name_id end |
Instance Method Details
#to_xml ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/saml/core/logout_request.rb', line 12 def to_xml xml = super unless @name_id.nil? name_id_node = xml.root.add_element("saml:NameID") name_id_node.text = @name_id end xml end |
#xml_document ⇒ Object
7 8 9 10 |
# File 'lib/saml/core/logout_request.rb', line 7 def xml_document xml = Document.new root = xml.add_element("samlp:LogoutRequest") end |