Class: UserDrop

Inherits:
Liquid::Simplero::Drop show all
Defined in:
app/drops/user_drop.rb

Overview

current_user refers to the current logged in user making the request. This will be nil if the user is not logged in. UserDrop will contain attributes that are applicable to any Simplero site the user visits. See also CustomerDrop and SiteMemberDrop.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#avatar_large_url ⇒ String

Returns:

  • (String)

#avatar_small_url ⇒ String

Returns:

  • (String)

#avatar_thumb_url ⇒ String

Returns:

  • (String)

#bio ⇒ String

Returns:

  • (String)

#company_url ⇒ String

Returns:

  • (String)

#email ⇒ String

Returns:

  • (String)

#facebook_url ⇒ String

Returns:

  • (String)

#first_names ⇒ String

Returns:

  • (String)

#full_mobile_number ⇒ Object

#homepage_url ⇒ String

Returns:

  • (String)

#last_name ⇒ String

Returns:

  • (String)

#mobile_number ⇒ String

Full mobile number, including country code.

Returns:

  • (String)

#mobile_number_country_code ⇒ String

Returns:

  • (String)

#most_recent_purchase ⇒ PurchaseDrop

Returns a PurchaseDrop of the current user's most recent purchase.

Returns:

#name ⇒ String

Returns:

  • (String)

#notification_subscriptions_path ⇒ String

Returns:

  • (String)

#notification_subscriptions_url ⇒ String

Returns:

  • (String)

#notifications_path ⇒ String

Returns:

  • (String)

#notifications_url ⇒ String

Returns:

  • (String)

#previous_purchases_of_cart_items ⇒ CollectionDrop

Returns PurchaseDrops of the current user's previous purchases of the items in the CartDrop.

Returns:

#sanitized_mobile_number ⇒ String

Full mobile number, including country code, formatted for validity.

Returns:

  • (String)

#spaces ⇒ Array<ExternalSiteDrop,SpaceDrop>

All sites and spaces this user can access.

Returns:

#twitter_name ⇒ String

Returns:

  • (String)

#unsubscribe_all_notifications_path ⇒ String

Returns:

  • (String)

#unsubscribe_all_notifications_url ⇒ String

Returns:

  • (String)

#username ⇒ String

Returns:

  • (String)