Class: C2eCore::Drops::ResetPasswordDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/reset_password_drop.rb
Instance Method Summary collapse
-
#expires_at ⇒ String
-
Time after which the url is no longer accepted.
-
-
#initialize(args) ⇒ ResetPasswordDrop
constructor
A new instance of ResetPasswordDrop.
-
#url ⇒ String
-
Link to create or change a user’s password.
-
-
#user ⇒ UserDrop
-
The user for which the url is generated as drop object.
-
Constructor Details
#initialize(args) ⇒ ResetPasswordDrop
Returns a new instance of ResetPasswordDrop.
6 7 8 9 |
# File '/build/app/mailers/c2e_core/drops/reset_password_drop.rb', line 6 def initialize(args) super() @args = args end |
Instance Method Details
#expires_at ⇒ String
Returns - Time after which the url is no longer accepted. E.g.: “11:38:56 CET”.
17 18 19 |
# File '/build/app/mailers/c2e_core/drops/reset_password_drop.rb', line 17 def expires_at @args[:expires_at] end |
#url ⇒ String
Returns - Link to create or change a user’s password.
12 13 14 |
# File '/build/app/mailers/c2e_core/drops/reset_password_drop.rb', line 12 def url @args[:url] end |