Class: C2eCore::Drops::CustomerDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- C2eCore::Drops::CustomerDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/customer_drop.rb
Instance Method Summary collapse
-
#address ⇒ AddressDrop
-
Default address of customer as drop object.
-
-
#first_name ⇒ String
-
First name of customer.
-
-
#initialize(order) ⇒ CustomerDrop
constructor
A new instance of CustomerDrop.
-
#last_name ⇒ String
-
Last name of customer.
-
-
#orders_count ⇒ Integer
-
Orders count of customer in moment of finishing order.
-
-
#phone ⇒ String
-
Default formatted phone number of customer.
-
-
#unsubscribe_url ⇒ String
-
URL pointing to speedlo.cz/unsubscribe?token=ASDF.…
-
Constructor Details
#initialize(order) ⇒ CustomerDrop
Returns a new instance of CustomerDrop.
Instance Method Details
#address ⇒ AddressDrop
Returns - Default address of customer as drop object.
#first_name ⇒ String
Returns - First name of customer. E.g.: “Tomáš”.
#last_name ⇒ String
Returns - Last name of customer. E.g.: “Jedno”.
#orders_count ⇒ Integer
Returns - Orders count of customer in moment of finishing order. E.g.: 42.
#phone ⇒ String
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”.
#unsubscribe_url ⇒ String
Returns - URL pointing to speedlo.cz/unsubscribe?token=ASDF.…