Module: MadMimiMailable

Included in:
MadMimiMailer
Defined in:
lib/mad_mimi_mailable.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

SINGLE_SEND_URL =
'https://madmimi.com/mailer'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/mad_mimi_mailable.rb', line 4

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#hidden(hidden = nil) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/mad_mimi_mailable.rb', line 26

def hidden(hidden = nil)
  if hidden.nil?
    @hidden
  else
    @hidden = hidden
  end
end

#promotion(promotion = nil) ⇒ Object

Custom Mailer attributes



10
11
12
13
14
15
16
# File 'lib/mad_mimi_mailable.rb', line 10

def promotion(promotion = nil)
  if promotion.nil?
    @promotion
  else
    @promotion = promotion
  end
end

#unconfirmed(value = nil) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/mad_mimi_mailable.rb', line 34

def unconfirmed(value = nil)
  if value.nil?
    @unconfirmed
  else
    @unconfirmed = value
  end
end

#use_erb(use_erb = nil) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/mad_mimi_mailable.rb', line 18

def use_erb(use_erb = nil)
  if use_erb.nil?
    @use_erb
  else
    @use_erb = use_erb
  end
end