Class: Users::RepairLdapBlockedService
- Inherits:
-
Object
- Object
- Users::RepairLdapBlockedService
- Defined in:
- app/services/users/repair_ldap_blocked_service.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(user) ⇒ RepairLdapBlockedService
constructor
A new instance of RepairLdapBlockedService.
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
#user ⇒ Object
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
#execute ⇒ Object
11 12 13 |
# File 'app/services/users/repair_ldap_blocked_service.rb', line 11 def execute user.block if ldap_hard_blocked? end |