Class: Booth::Userland::Otps::Transitions::Update::Register

Inherits:
Object
  • Object
show all
Includes:
Concerns::Transition
Defined in:
lib/booth/userland/otps/transitions/update/register.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.applicable?(params:) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/booth/userland/otps/transitions/update/register.rb', line 9

def self.applicable?(params:)
  params&.key?(:register)
end

Instance Method Details

#callObject



13
14
15
16
# File 'lib/booth/userland/otps/transitions/update/register.rb', line 13

def call
  do_check_secret_key
    .on_success { do_register_otp }
end