lib/rsaml/protocol/status_code.rb
# Construct an XML fragment representing the request
# XML Schema :
#
#   <element name="StatusCode" type="samlp:StatusCodeType"/>
#   <complexType name="StatusCodeType">
#     <sequence>
#       <element ref="samlp:StatusCode" minOccurs="0"/>
#     </sequence>
#     <attribute name="Value" type="anyURI" use="required"/>
#   </complexType>
Construct an XML fragment representing the request
XML Schema .


Construct an XML fragment representing the request XML Schema .
def to_xml(xml=Builder::XmlMarkup.new)
        attributes = {'Value' => value}
        xml.tag!('samlp:StatusCode', attributes) {
          xml << status_code.to_xml unless status_code.nil?
        }
      end
def to_xml ( xml = Builder :: XmlMarkup . new ) attributes = { 'Value' => value } xml . tag! ( 'samlp:StatusCode' , attributes ) { xml << status_code . to_xml unless status_code . nil? } end
Construct an XML fragment representing the request
XML Schema :
Construct an XML fragment representing the request XML Schema :
xml
new