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.
115 116 117 |
# File 'lib/saml2/attribute.rb', line 115 def initialize(attributes) @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
113 114 115 |
# File 'lib/saml2/attribute.rb', line 113 def attributes @attributes end |
Instance Method Details
#build(builder) ⇒ Object
119 120 121 122 123 |
# File 'lib/saml2/attribute.rb', line 119 def build(builder) builder['saml'].AttributeStatement('xmlns:xsi' => Namespaces::XSI) do |builder| @attributes.each { |attr| attr.build(builder) } end end |