Class: Courrier::Email::Providers::Cloudflare

Inherits:
Base
  • Object
show all
Defined in:
lib/courrier/email/providers/cloudflare.rb

Instance Method Summary collapse

Methods inherited from Base

#deliver, #initialize

Constructor Details

This class inherits a constructor from Courrier::Email::Providers::Base

Instance Method Details

#bodyObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/courrier/email/providers/cloudflare.rb', line 7

def body
  {
    "from" => @options.from,
    "to" => @options.to,
    "reply_to" => @options.reply_to,
    "cc" => @options.cc,
    "bcc" => @options.bcc,
    "subject" => @options.subject,
    "text" => @options.text,
    "html" => @options.html
  }.compact
end