Class: Users::RepairLdapBlockedService

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ RepairLdapBlockedService

Returns a new instance of RepairLdapBlockedService.


7
8
9
# File 'app/services/users/repair_ldap_blocked_service.rb', line 7

def initialize(user)
  @user = user
end

Instance Attribute Details

#userObject

Returns the value of attribute user


5
6
7
# File 'app/services/users/repair_ldap_blocked_service.rb', line 5

def user
  @user
end

Instance Method Details

#executeObject


11
12
13
# File 'app/services/users/repair_ldap_blocked_service.rb', line 11

def execute
  user.block if ldap_hard_blocked?
end