Sha256: 19f96a4c70bc7c975b60ac6443348a56844af0033022b73ecf9ec2d0ba067508
Contents?: true
Size: 402 Bytes
Versions: 4
Compression:
Stored size: 402 Bytes
Contents
module DeviseOam class AuthenticatableEntity attr_accessor :login, :ldap_roles, :attributes def initialize(login, ldap_roles = nil, attributes = {}) @login = login @ldap_roles = parse_ldap_roles(ldap_roles) if ldap_roles @attributes = attributes end private def parse_ldap_roles(ldap_roles) ldap_roles.strip.downcase.split(',') end end end
Version data entries
4 entries across 4 versions & 1 rubygems