Sha256: a5562e4c0434676d973ea03b8e8a9cd07fa2830f0ef7020f696364427a862346
Contents?: true
Size: 708 Bytes
Versions: 5
Compression:
Stored size: 708 Bytes
Contents
# Provides an Interface for implementing an Adapter. Adapters are supposed to handle communication with the email service (ie: Sendgrid) and to be included by MailCannon::Envelope. MailCannon::Envelope attributes should be accessed to figure out what to send to the email service. module MailCannon::Adapter class AuthException < RuntimeError; end module InstanceMethods # Sends an Envelope with 1 recipient. def send! raise 'Not available for this adapter!' end # Sends an Envelope with multiple recipients. def send_bulk! raise 'Not available for this adapter!' end end def self.included(receiver) receiver.send :include, InstanceMethods end end
Version data entries
5 entries across 5 versions & 1 rubygems