Sha256: 363e6ceb9c76822c6bdb4ed255570c9ca053cbc13adbd213a16012a39e8b6edf

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module Drill
  Params = Struct.new(
    :from_name,
    :from_email,
    :reply_to,
    :cc,
    :to,
    :vars,
    :template_name,
    :skip_delivery,
    keyword_init: true
  ) do
    def merge_vars(other_vars)
      self.vars = Hash(vars).merge(other_vars)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
drill-mailer-0.3.0 lib/drill/params.rb