Class: Saml::Elements::AttributeStatement

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/saml/elements/attribute_statement.rb

Instance Method Summary collapse

Instance Method Details

#fetch_attribute(key) ⇒ Object



13
14
15
16
17
18
# File 'lib/saml/elements/attribute_statement.rb', line 13

def fetch_attribute(key)
  attribute = self.attribute.find do |attr|
    attr.name == key
  end
  attribute.attribute_value if attribute
end