Class: SAML::Core::AttributeStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/core/attribute_statement.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



5
6
7
# File 'lib/saml/core/attribute_statement.rb', line 5

def attributes
  @attributes
end

Class Method Details

.from_xml(xml) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/saml/core/attribute_statement.rb', line 7

def self.from_xml(xml)
  statement = new
  attrs = []
  xml.each_element('saml:Attribute') do |a|
    attrs << Attribute.from_xml(a)
  end
  statement.attributes = attrs

  statement
end