Class: UserDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- UserDrop
- 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
- #avatar_large_url ⇒ String
- #avatar_small_url ⇒ String
- #avatar_thumb_url ⇒ String
- #bio ⇒ String
- #company_url ⇒ String
- #email ⇒ String
- #facebook_url ⇒ String
- #first_names ⇒ String
- #full_mobile_number ⇒ Object
- #homepage_url ⇒ String
- #last_name ⇒ String
-
#mobile_number ⇒ String
Full mobile number, including country code.
- #mobile_number_country_code ⇒ String
-
#most_recent_purchase ⇒ PurchaseDrop
Returns a PurchaseDrop of the current user's most recent purchase.
- #name ⇒ String
- #notification_subscriptions_path ⇒ String
- #notification_subscriptions_url ⇒ String
- #notifications_path ⇒ String
- #notifications_url ⇒ String
-
#previous_purchases_of_cart_items ⇒ CollectionDrop
Returns PurchaseDrops of the current user's previous purchases of the items in the CartDrop.
-
#sanitized_mobile_number ⇒ String
Full mobile number, including country code, formatted for validity.
-
#spaces ⇒ Array<ExternalSiteDrop,SpaceDrop>
All sites and spaces this user can access.
- #twitter_name ⇒ String
- #unsubscribe_all_notifications_path ⇒ String
- #unsubscribe_all_notifications_url ⇒ String
- #username ⇒ String
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#avatar_large_url ⇒ String
#avatar_small_url ⇒ String
#avatar_thumb_url ⇒ String
#bio ⇒ String
#company_url ⇒ String
#email ⇒ String
#facebook_url ⇒ String
#first_names ⇒ String
#full_mobile_number ⇒ Object
#homepage_url ⇒ String
#last_name ⇒ String
#mobile_number ⇒ String
Full mobile number, including country code.
#mobile_number_country_code ⇒ String
#most_recent_purchase ⇒ PurchaseDrop
Returns a PurchaseDrop of the current user's most recent purchase.
#name ⇒ String
#notification_subscriptions_path ⇒ String
#notification_subscriptions_url ⇒ String
#notifications_path ⇒ String
#notifications_url ⇒ String
#previous_purchases_of_cart_items ⇒ CollectionDrop
Returns PurchaseDrops of the current user's previous purchases of the items in the CartDrop.
#sanitized_mobile_number ⇒ String
Full mobile number, including country code, formatted for validity.
#spaces ⇒ Array<ExternalSiteDrop,SpaceDrop>
All sites and spaces this user can access.