Class: SAML2::AttributeStatement
- Inherits:
-
Object
- Object
- SAML2::AttributeStatement
- Defined in:
- lib/saml2/attribute.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #build(builder) ⇒ Object
-
#initialize(attributes) ⇒ AttributeStatement
constructor
A new instance of AttributeStatement.
Constructor Details
#initialize(attributes) ⇒ AttributeStatement
Returns a new instance of AttributeStatement.
112 113 114 |
# File 'lib/saml2/attribute.rb', line 112 def initialize(attributes) @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
110 111 112 |
# File 'lib/saml2/attribute.rb', line 110 def attributes @attributes end |
Instance Method Details
#build(builder) ⇒ Object
116 117 118 119 120 |
# File 'lib/saml2/attribute.rb', line 116 def build(builder) builder['saml'].AttributeStatement('xmlns:xsi' => Namespaces::XSI) do |builder| @attributes.each { |attr| attr.build(builder) } end end |