Class: AuctionFunCore::Services::Mail::UserContext::RegistrationMailer

Inherits:
Object
  • Object
show all
Includes:
IdleMailer::Mailer, IdleMailer::TemplateManager
Defined in:
lib/auction_fun_core/services/mail/user_context/registration_mailer.rb

Overview

Service class responsible for sending registration emails to users.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ RegistrationMailer

Initializes a new RegistrationMailer instance.

Parameters:

  • user (ROM::Struct::User)

    The user object



15
16
17
18
19
# File 'lib/auction_fun_core/services/mail/user_context/registration_mailer.rb', line 15

def initialize(user)
  @user = user
  mail.to = user.email
  mail.subject = I18n.t("mail.user_context.registration.subject")
end

Class Method Details

.template_nameString

Returns the template name for the RegistrationMailer.

Returns:

  • (String)

    The template name.



24
25
26
# File 'lib/auction_fun_core/services/mail/user_context/registration_mailer.rb', line 24

def self.template_name
  IdleMailer.config.templates.join("user_context/registration")
end