Class: SendGrid4r::Factory::VersionFactory
- Inherits:
-
Object
- Object
- SendGrid4r::Factory::VersionFactory
- Defined in:
- lib/sendgrid4r/factory/version_factory.rb
Overview
SendGrid Web API v3 Factory Class implementation
Instance Method Summary collapse
Instance Method Details
#create(name:, subject: '<%subject%>', html_content: '<%body%>', plain_content: '<%body%>', active: 1) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/sendgrid4r/factory/version_factory.rb', line 9 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 |