Class: Devise::G5::AuthUserCreator
- Inherits:
-
Object
- Object
- Devise::G5::AuthUserCreator
- Defined in:
- lib/devise_g5_authenticatable/g5/auth_user_creator.rb
Overview
Create a new user account on the G5 Auth server
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(authenticatable_model) ⇒ AuthUserCreator
constructor
A new instance of AuthUserCreator.
Constructor Details
#initialize(authenticatable_model) ⇒ AuthUserCreator
Returns a new instance of AuthUserCreator.
11 12 13 |
# File 'lib/devise_g5_authenticatable/g5/auth_user_creator.rb', line 11 def initialize(authenticatable_model) @model = authenticatable_model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
9 10 11 |
# File 'lib/devise_g5_authenticatable/g5/auth_user_creator.rb', line 9 def model @model end |
Instance Method Details
#create ⇒ Object
15 16 17 |
# File 'lib/devise_g5_authenticatable/g5/auth_user_creator.rb', line 15 def create create_auth_user unless auth_user_exists? end |