Class: SAML::Core::LogoutRequest

Inherits:
RequestAbstract show all
Defined in:
lib/saml/core/logout_request.rb

Instance Attribute Summary collapse

Attributes inherited from RequestAbstract

#id, #issue_instant, #issuer, #version

Instance Method Summary collapse

Methods inherited from RequestAbstract

#initialize

Constructor Details

This class inherits a constructor from SAML::Core::RequestAbstract

Instance Attribute Details

#name_idObject

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_xmlObject



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_documentObject



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