lib/rsaml/attribute.rb
# Construct an XML fragment representing the attribute
Construct an XML fragment representing the attribute
Construct an XML fragment representing the attribute
def to_xml(xml=Builder::XmlMarkup.new)
      xml_attributes = {'Name' => name}
      xml_attributes['NameFormat'] = name_format unless name_format.nil?
      xml_attributes['FriendlyName'] = friendly_name unless friendly_name.nil?
      xml.tag!('saml:Attribute', xml_attributes.merge(extra_xml_attributes)) {
        values.each { |value| xml << value.to_xml }
      }
    end
def to_xml ( xml = Builder :: XmlMarkup . new ) xml_attributes = { 'Name' => name } xml_attributes [ 'NameFormat' ] = name_format unless name_format . nil? xml_attributes [ 'FriendlyName' ] = friendly_name unless friendly_name . nil? xml . tag! ( 'saml:Attribute' , xml_attributes . merge ( extra_xml_attributes ) ) { values . each { | value | xml << value . to_xml } } end
Construct an XML fragment representing the attribute
Construct an XML fragment representing the attribute
xml
new