Sha256: aa693541b3ebf02ab852912fb1a94886363735eda7bc8e3848c0a1f58bfb2c43

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

module Saml
  module Elements
    class Attribute
      include Saml::Base

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

      attribute :name, String, :tag => 'Name'
      attribute :format, String, tag: 'NameFormat'
      attribute :friendly_name, String, tag: 'FriendlyName'
      element :attribute_value, String, :namespace => 'saml', :tag => "AttributeValue"

      validates :name, :presence => true

      def initialize(*args)
        options = args.extract_options!
        super(*(args << options))
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libsaml-2.0.6 lib/saml/elements/attribute.rb
libsaml-2.0.5 lib/saml/elements/attribute.rb