lib/rsaml/assertion.rb
def to_xml(xml=Builder::XmlMarkup.new)
      attributes = {'ID' => id, 'Version' => version, 'IssueInstant' => issue_instant.in_time_zone.xmlschema}
      xml.tag!('saml:Assertion', attributes) {
        xml << issuer.to_xml
        xml << signature.to_xml unless signature.nil?
        xml << subject.to_xml unless subject.nil?
        xml << conditions.to_xml unless conditions.nil? || conditions.empty?
        advice.each { |a| xml << a.to_xml }
        statements.each { |s| xml << s.to_xml }
      }
    end
# Construct an XML fragment representing the assertion
Construct an XML fragment representing the assertion
Construct an XML fragment representing the assertion
def to_xml(xml=Builder::XmlMarkup.new)
      attributes = {'ID' => id, 'Version' => version, 'IssueInstant' => issue_instant.in_time_zone.xmlschema}
      xml.tag!('saml:Assertion', attributes) {
        xml << issuer.to_xml
        xml << signature.to_xml unless signature.nil?
        xml << subject.to_xml unless subject.nil?
        xml << conditions.to_xml unless conditions.nil? || conditions.empty?
        advice.each { |a| xml << a.to_xml }
        statements.each { |s| xml << s.to_xml }
      }
    end
def to_xml ( xml = Builder :: XmlMarkup . new ) attributes = { 'ID' => id , 'Version' => version , 'IssueInstant' => issue_instant . in_time_zone . xmlschema } xml . tag! ( 'saml:Assertion' , attributes ) { xml << issuer . to_xml xml << signature . to_xml unless signature . nil? xml << subject . to_xml unless subject . nil? xml << conditions . to_xml unless conditions . nil? || conditions . empty? advice . each { | a | xml << a . to_xml } statements . each { | s | xml << s . to_xml } } end
Construct an XML fragment representing the assertion
Construct an XML fragment representing the assertion
xml
new