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_urlString

Returns:

  • (String)

#avatar_small_urlString

Returns:

  • (String)

#avatar_thumb_urlString

Returns:

  • (String)

#bioString

Returns:

  • (String)

#company_urlString

Returns:

  • (String)

#emailString

Returns:

  • (String)

#facebook_urlString

Returns:

  • (String)

#first_namesString

Returns:

  • (String)

#full_mobile_numberObject

#homepage_urlString

Returns:

  • (String)

#last_nameString

Returns:

  • (String)

#mobile_numberString

Full mobile number, including country code.

Returns:

  • (String)

#mobile_number_country_codeString

Returns:

  • (String)

#most_recent_purchasePurchaseDrop

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

Returns:

#nameString

Returns:

  • (String)

#notification_subscriptions_pathString

Returns:

  • (String)

#notification_subscriptions_urlString

Returns:

  • (String)

#notifications_pathString

Returns:

  • (String)

#notifications_urlString

Returns:

  • (String)

#previous_purchases_of_cart_itemsCollectionDrop

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

Returns:

#sanitized_mobile_numberString

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

Returns:

  • (String)

#spacesArray<ExternalSiteDrop,SpaceDrop>

All sites and spaces this user can access.

Returns:

#twitter_nameString

Returns:

  • (String)

#unsubscribe_all_notifications_pathString

Returns:

  • (String)

#unsubscribe_all_notifications_urlString

Returns:

  • (String)

#usernameString

Returns:

  • (String)