Class: Identity::AccountCreator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#userObject

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

#callObject



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

   = create_if_needed!

  update_if_needed!()
end