class SAML::Core::Attribute
Attributes
attribute_values[RW]
name[RW]
name_format[RW]
Public Class Methods
from_xml(xml)
click to toggle source
# File lib/saml/core/attribute.rb, line 9 def self.from_xml(xml) attribute = new attribute.name = xml.attributes['Name'] nf = xml.attributes['NameFormat'] attribute.name_format = nf.nil? ? 'urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified' : nf values = [] xml.each_element() do |av| values << av.to_s end attribute.attribute_values = values attribute end