Module: DotMailer::OptInType

Defined in:
lib/dot_mailer/opt_in_type.rb

Constant Summary collapse

DOUBLE =
'Double'
SINGLE =
'Single'
UNKNOWN =
'Unknown'
VERIFIED_DOUBLE =
'VerifiedDouble'

Class Method Summary collapse

Class Method Details

.allObject



8
9
10
# File 'lib/dot_mailer/opt_in_type.rb', line 8

def self.all
  constants(false).map(&method(:const_get))
end

.exists?(opt_in_type) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/dot_mailer/opt_in_type.rb', line 12

def self.exists?(opt_in_type)
  all.include?(opt_in_type)
end