Class: Monban::Services::SignUp
- Inherits:
-
Object
- Object
- Monban::Services::SignUp
- Defined in:
- lib/monban/services/sign_up.rb
Overview
Sign up service. Signs the user up
Instance Method Summary collapse
-
#initialize(user_params) ⇒ SignUp
constructor
Initialize service.
-
#perform ⇒ Object
Performs the service.
Constructor Details
#initialize(user_params) ⇒ SignUp
Initialize service
9 10 11 12 13 14 |
# File 'lib/monban/services/sign_up.rb', line 9 def initialize user_params digested_token = token_digest(user_params) @user_params = user_params. except(token_field). merge(token_store_field.to_sym => digested_token) end |
Instance Method Details
#perform ⇒ Object
Performs the service
18 19 20 |
# File 'lib/monban/services/sign_up.rb', line 18 def perform Monban.config.creation_method.call(user_params) end |