Class: C2eCore::Drops::CustomerDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/customer_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(order) ⇒ CustomerDrop

Returns a new instance of CustomerDrop.

Instance Method Details

#addressAddressDrop

Returns - Default address of customer as drop object.

Returns:

  • (AddressDrop)
    • Default address of customer as drop object.

#first_nameString

Returns - First name of customer. E.g.: “Tomáš”.

Returns:

  • (String)
    • First name of customer. E.g.: “Tomáš”

#last_nameString

Returns - Last name of customer. E.g.: “Jedno”.

Returns:

  • (String)
    • Last name of customer. E.g.: “Jedno”

#orders_countInteger

Returns - Orders count of customer in moment of finishing order. E.g.: 42.

Returns:

  • (Integer)
    • Orders count of customer in moment of finishing order. E.g.: 42

#phoneString

Returns - Default formatted phone number of customer. If formatting is not possible, returns raw phone from DB. E.g.: “+420 987 654 321” or “+420987654321”.

Returns:

  • (String)
    • Default formatted phone number of customer. If formatting is not possible, returns raw phone

    from DB. E.g.: “+420 987 654 321” or “+420987654321”

#unsubscribe_urlString

Returns - URL pointing to speedlo.cz/unsubscribe?token=ASDF.…

Returns: