Class: Booth::Credentials::CreateWithOnboarding
- Inherits:
-
Object
- Object
- Booth::Credentials::CreateWithOnboarding
- Includes:
- Logging, MethodObject
- Defined in:
- lib/booth/credentials/create_with_onboarding.rb
Instance Method Summary collapse
Methods included from MethodObject
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/booth/credentials/create_with_onboarding.rb', line 11 def call creation = ::Booth::Credentials::Create.call(username:, allowed_modes:, scope:) creation.on_success do onboarding = creation.credential.create_onboarding! return Tron.success :credential_with_onboarding_created, credential: creation.credential, onboarding: end creation end |