Module: MailEngine::Sendgrid::Base::ClassMethods

Defined in:
lib/mail_engine/sendgrid/base.rb

Instance Method Summary collapse

Instance Method Details

#sendgrid_header(&block) ⇒ Object



35
36
37
38
# File 'lib/mail_engine/sendgrid/base.rb', line 35

def sendgrid_header(&block)
  self.sendgrid_config = SmtpApi.new
  self.sendgrid_config.instance_eval(&block)
end