cLean Architecutre

Created by niquola / @niquola
hospital-systems/waveaccess
2013 happydev 2013

Teamlead @ hospital-systems

github/niquola / @niquola

             
              iam.tap do |s|
                confirmation_key = nil

                s.listen :sign_up do |ev|
                  confirmation_key = ev.confirmation_key
                end

                s.sign_up!(email, password)
                s.confirm!(confirmation_key)

                session_key = s.sign_in!(email, password)
                s.session_active?(session_key).should be_true

                s.sign_out!(session_key)
              end
             
           

Dankeschön

Fork me on GitHub