Class: Identity::AccountCreator
- Inherits:
-
Object
- Object
- Identity::AccountCreator
- Defined in:
- app/services/identity/account_creator.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(user) ⇒ AccountCreator
constructor
A new instance of AccountCreator.
Constructor Details
#initialize(user) ⇒ AccountCreator
Returns a new instance of AccountCreator.
5 6 7 |
# File 'app/services/identity/account_creator.rb', line 5 def initialize(user) @user = user end |
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user.
9 10 11 |
# File 'app/services/identity/account_creator.rb', line 9 def user @user end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/services/identity/account_creator.rb', line 11 def call return unless user.idme_uuid || user.logingov_uuid || user.sec_id account = create_if_needed! update_if_needed!(account) end |