Class: Booth::Adminland::Recoveries::Consume

Inherits:
Object
  • Object
show all
Includes:
Logging, MethodObject
Defined in:
lib/booth/adminland/recoveries/consume.rb

Overview

When sending out username recovery emails, this class helps to keep the sending mechanism idempodent.

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



13
14
15
16
17
18
# File 'lib/booth/adminland/recoveries/consume.rb', line 13

def call
  do_find_recovery
    .on_success { do_find_credential }
    .on_success { do_check_eligibility }
    .on_success { do_consume }
end