Class: LogStruct::Log::ActionMailer::BaseFields

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/log_struct/log/action_mailer.rb

Constant Summary collapse

Kwargs =
T.type_alias do
  {
    to: T.nilable(T::Array[String]),
    from: T.nilable(String),
    subject: T.nilable(String),
    message_id: T.nilable(String),
    mailer_class: T.nilable(String),
    mailer_action: T.nilable(String),
    attachment_count: T.nilable(Integer)
  }
end

Instance Method Summary collapse

Instance Method Details

#to_kwargsObject



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/log_struct/log/action_mailer.rb', line 39

def to_kwargs
  {
    to: to,
    from: from,
    subject: subject,
    message_id: message_id,
    mailer_class: mailer_class,
    mailer_action: mailer_action,
    attachment_count: attachment_count
  }
end