Class: C2eCore::Drops::ResetPasswordDrop

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

Instance Method Summary collapse

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_atString

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

Returns:

  • (String)
    • 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

#urlString

Returns - Link to create or change a user’s password.

Returns:

  • (String)
    • 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

#userUserDrop

Returns - The user for which the url is generated as drop object.

Returns:

  • (UserDrop)
    • The user for which the url is generated as drop object.



22
23
24
25
26
# File '/build/app/mailers/c2e_core/drops/reset_password_drop.rb', line 22

def user
  stored_value __method__ do
    UserDrop.new(@args[:user])
  end
end