Sha256: ad93e5633160676eaa1dd8d7e5e07f8e6b5cbfd3374bf13ab2d5d9d9ad3d06bd

Contents?: true

Size: 516 Bytes

Versions: 25

Compression:

Stored size: 516 Bytes

Contents

module Saml
  module Elements
    class AttributeStatement
      include Saml::Base

      tag "AttributeStatement"
      register_namespace 'saml', Saml::SAML_NAMESPACE
      namespace 'saml'

      has_many :attribute, Saml::Elements::Attribute
      has_many :encrypted_attributes, Saml::Elements::EncryptedAttribute

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
libsaml-2.6.0 lib/saml/elements/attribute_statement.rb
libsaml-2.5.2 lib/saml/elements/attribute_statement.rb
libsaml-2.5.1 lib/saml/elements/attribute_statement.rb
libsaml-2.5.0 lib/saml/elements/attribute_statement.rb
libsaml-2.4.7 lib/saml/elements/attribute_statement.rb
libsaml-2.4.6 lib/saml/elements/attribute_statement.rb
libsaml-2.4.5 lib/saml/elements/attribute_statement.rb
libsaml-2.4.4 lib/saml/elements/attribute_statement.rb
libsaml-2.4.3 lib/saml/elements/attribute_statement.rb
libsaml-2.4.2 lib/saml/elements/attribute_statement.rb
libsaml-2.4.1 lib/saml/elements/attribute_statement.rb
libsaml-2.3.2 lib/saml/elements/attribute_statement.rb
libsaml-2.3.1 lib/saml/elements/attribute_statement.rb
libsaml-2.2.3 lib/saml/elements/attribute_statement.rb
libsaml-2.2.2 lib/saml/elements/attribute_statement.rb
libsaml-2.2.1 lib/saml/elements/attribute_statement.rb
libsaml-2.1.9 lib/saml/elements/attribute_statement.rb
libsaml-2.1.8 lib/saml/elements/attribute_statement.rb
libsaml-2.1.7 lib/saml/elements/attribute_statement.rb
libsaml-2.1.6 lib/saml/elements/attribute_statement.rb