Sha256: 20eae1f048c3e9be5a64ca9505b6fdfb88c76a546e39523d38ea5f9c9794d707

Contents?: true

Size: 593 Bytes

Versions: 5

Compression:

Stored size: 593 Bytes

Contents

module OneLogin
  module RubySaml
    class AttributeService
      attr_reader :attributes
      attr_reader :name
      attr_reader :index

      def initialize
        @index = "1"
        @attributes = []
      end

      def configure(&block)
        instance_eval &block
      end

      def configured?
        @attributes.length > 0 && !@name.nil?
      end

      def service_name(name)
        @name = name
      end

      def service_index(index)
        @index = index
      end
      
      def add_attribute(options={})
        attributes << options 
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-saml-0.9.4 lib/onelogin/ruby-saml/attribute_service.rb
ruby-saml-0.9.3 lib/onelogin/ruby-saml/attribute_service.rb
ruby-saml-0.9.2 lib/onelogin/ruby-saml/attribute_service.rb
ruby-saml-0.9.1 lib/onelogin/ruby-saml/attribute_service.rb
ruby-saml-0.9 lib/onelogin/ruby-saml/attribute_service.rb