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

#autofill ⇒ String

Returns - SMS OTP autofill standard format. E.g.: "@consents.stage.speedlo.cloud #123456". Must appear on the last line of the SMS, see: https://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: https://web.dev/web-otp/#format.

#expires_at ⇒ String

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".

#resource ⇒ String

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".

#url ⇒ String?

Returns - Link to confirm the user's email.

Returns:

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

#value ⇒ String

Returns - Value of the ConfirmationCode. E.g.: "123456".

Returns:

  • (String) —
    • Value of the ConfirmationCode. E.g.: "123456".