Class: Thincloud::Postmark::Interceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/thincloud/postmark/interceptor.rb

Overview

Public: Default Rails mail interceptor

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.bccObject

Returns the value of attribute bcc.



8
9
10
# File 'lib/thincloud/postmark/interceptor.rb', line 8

def bcc
  @bcc
end

.ccObject

Returns the value of attribute cc.



7
8
9
# File 'lib/thincloud/postmark/interceptor.rb', line 7

def cc
  @cc
end

.toObject

Returns the value of attribute to.



6
7
8
# File 'lib/thincloud/postmark/interceptor.rb', line 6

def to
  @to
end

Class Method Details

.delivering_email(message) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/thincloud/postmark/interceptor.rb', line 11

def self.delivering_email(message)
  message.subject = "[#{message.to}] #{message.subject}"
  message.to      = to
  message.cc      = cc
  message.bcc     = bcc
  message
end