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"

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#deliver, #initialize

Constructor Details

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

Class Method Details

.config_optionsObject



7
# File 'lib/courrier/email/providers/userlist.rb', line 7

def self.config_options = %w[theme]

Instance Method Details

#bodyObject



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

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