Sha256: cf656d16a379208032e3ddb4766fbc2a383088d949718eb67a3af8c5d23af497

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

# -*- encoding: utf-8 -*-

module SendGrid4r
  module Factory
    #
    # SendGrid Web API v3 Factory Class implementation
    #
    class VersionFactory
      def create(
        name:, subject: '<%subject%>',
        html_content: '<%body%>', plain_content: '<%body%>', active: 1)
        REST::TransactionalTemplates::Versions::Version.new(
          nil,
          nil,
          nil,
          active,
          name,
          html_content,
          plain_content,
          subject,
          nil
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sendgrid4r-1.15.0 lib/sendgrid4r/factory/version_factory.rb
sendgrid4r-1.14.0 lib/sendgrid4r/factory/version_factory.rb
sendgrid4r-1.13.0 lib/sendgrid4r/factory/version_factory.rb
sendgrid4r-1.12.0 lib/sendgrid4r/factory/version_factory.rb
sendgrid4r-1.11.0 lib/sendgrid4r/factory/version_factory.rb
sendgrid4r-1.10.0 lib/sendgrid4r/factory/version_factory.rb