Class: Locomotive::Steam::Liquid::Drops::CurrentUser
- Inherits:
-
Base
- Object
- Liquid::Drop
- Base
- Locomotive::Steam::Liquid::Drops::CurrentUser
show all
- Defined in:
- lib/locomotive/steam/liquid/drops/current_user.rb
Instance Method Summary
collapse
Methods inherited from Base
#as_json, #id, #initialize
Instance Method Details
#email ⇒ Object
15
16
17
|
# File 'lib/locomotive/steam/liquid/drops/current_user.rb', line 15
def email
@_source.email if logged_in?
end
|
#logged_in? ⇒ Boolean
7
8
9
|
# File 'lib/locomotive/steam/liquid/drops/current_user.rb', line 7
def logged_in?
@_source.present?
end
|
#name ⇒ Object
11
12
13
|
# File 'lib/locomotive/steam/liquid/drops/current_user.rb', line 11
def name
@_source.name if logged_in?
end
|