Class: Rapidmail::Utils::Placeholder

Inherits:
Object
  • Object
show all
Defined in:
lib/rapidmail/utils/placeholder.rb

Overview

Lists placeholder values for email personalization

Constant Summary collapse

LIST =

List of available placeholders for mailings

Returns:

  • (Array<String>)

    frozen array of placeholder names

%w[
  email
  firstname
  lastname
  gender
  title
  zip
  birthdate
].freeze

Class Method Summary collapse

Class Method Details

.listArray<String>

Returns the list of available placeholders

Examples:

Get all available placeholders

Rapidmail::Utils::Placeholder.list
# => ["email", "firstname", "lastname", "gender", "title", "zip", "birthdate"]

Returns:

  • (Array<String>)

    frozen array of placeholder names



26
27
28
# File 'lib/rapidmail/utils/placeholder.rb', line 26

def self.list
  LIST
end