class SendGrid4r::Factory::VersionFactory

SendGrid Web API v3 Factory Class implementation

Public Instance Methods

create( name:, subject: '<%subject%>', html_content: '<%body%>', plain_content: '<%body%>', active: 1) click to toggle source
# File lib/sendgrid4r/factory/version_factory.rb, line 8
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