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
.all ⇒ Object
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
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 |