Method: RSAML::Subject#to_xml
- Defined in:
- lib/rsaml/subject.rb
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
Construct an XML fragment representing the subject
22 23 24 25 26 27 |
# File 'lib/rsaml/subject.rb', line 22 def to_xml(xml=Builder::XmlMarkup.new) xml.tag!('saml:Subject') { xml << identifier.to_xml unless identifier.nil? xml << subject_confirmations.map { |sc| sc.to_xml }.join } end |