Class: C2eCore::Drops::UsersConfirmationCodeDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/users_confirmation_code_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(confirmation_code) ⇒ UsersConfirmationCodeDrop

Returns a new instance of UsersConfirmationCodeDrop.

Instance Method Details

#autofillString

Returns - SMS OTP autofill standard format. E.g.: “@consents.stage.speedlo.cloud #123456”. Must appear on the last line of the SMS, see: web.dev/web-otp/#format.

Returns:

  • (String)
    • SMS OTP autofill standard format. E.g.: “@consents.stage.speedlo.cloud #123456”.

    Must appear on the last line of the SMS, see: web.dev/web-otp/#format.

#expires_atString

Returns - Time after which the ConfirmationCode is no longer accepted. E.g.: “11:38:56 CET”.

Returns:

  • (String)
    • Time after which the ConfirmationCode is no longer accepted. E.g.: “11:38:56 CET”.

#resourceString

Returns - The resource that the User is confirming. E.g.: “test@example.com” or “+420333123456”.

Returns:

  • (String)
    • The resource that the User is confirming. E.g.: “test@example.com” or “+420333123456”.

#urlString?

Returns - Link to confirm the user’s email.

Returns:

  • (String, nil)
    • Link to confirm the user’s email.

#valueString

Returns - Value of the ConfirmationCode. E.g.: “123456”.

Returns:

  • (String)
    • Value of the ConfirmationCode. E.g.: “123456”.