Class: Courrier::Email::Providers::Userlist

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

Constant Summary collapse

ENDPOINT_URL =
"https://push.userlist.com/messages"

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



9
10
11
12
13
14
15
16
# File 'lib/courrier/email/providers/userlist.rb', line 9

def body
  {
    "from" => @options.from,
    "to" => @options.to,
    "subject" => @options.subject,
    "body" => body_document
  }.compact.merge(provider_options)
end