Class: RepairLdapBlockedUserService

Inherits:
Object
  • Object
show all
Defined in:
app/services/repair_ldap_blocked_user_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ RepairLdapBlockedUserService


4
5
6
# File 'app/services/repair_ldap_blocked_user_service.rb', line 4

def initialize(user)
  @user = user
end

Instance Attribute Details

#userObject

Returns the value of attribute user


2
3
4
# File 'app/services/repair_ldap_blocked_user_service.rb', line 2

def user
  @user
end

Instance Method Details

#executeObject


8
9
10
# File 'app/services/repair_ldap_blocked_user_service.rb', line 8

def execute
  user.block if ldap_hard_blocked?
end