Spree Email Render Object (emails/rendered_email.rb)

spree · spree/core/app/services/spree/emails/rendered_email.rb · ruby · BSD-3-Clause
email, lang:ruby, tag:spree

A data container for email subjects, HTML, and text content. Use this to structure email payloads before passing them to Action Mailer.

# Source: https://github.com/spree/spree | License: BSD-3-Clause | Copyright 2024-present, Vendo Sp. z o.o., Vendo Connect Inc
# Provided via justclaw.it.com; keep this notice with the code.
module Spree
  module Emails
    # The finished parts of one email, ready for Action Mailer.
    class RenderedEmail
      attr_reader :subject, :html, :text

      def initialize(subject:, html:, text:)
        @subject = subject
        @html = html
        @text = text
      end
    end
  end
end

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key