Skip to content

Instantly share code, notes, and snippets.

@vrybas
Forked from kossnocorp/activity_status.rb
Created September 9, 2013 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrybas/6492627 to your computer and use it in GitHub Desktop.
Save vrybas/6492627 to your computer and use it in GitHub Desktop.
def activity_status
if currently_working?
'working'
elsif worked_recently?
'active'
elsif has_activity?
'inactive'
elsif signed_in_at_least_once?
'no_activity'
else
'never_sign_in'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment