Sha256: 23cde5b1b83fc3cca50c5bc805e7db3bbf0a14c11452f88f5b58e6d10cc29bb6

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

module DeviseOam
  class AuthenticatableEntity
    attr_accessor :login, :ldap_roles
    
    def initialize(login, ldap_roles = nil)
      @login = login.strip.downcase
      @ldap_roles = parse_ldap_roles(ldap_roles) if ldap_roles
    end
    
    private
    def parse_ldap_roles(ldap_roles)
      ldap_roles.strip.downcase.split(',')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise_oam-0.0.1 lib/devise_oam/authenticatable_entity.rb