Class: Ogam::User
- Inherits:
-
Object
- Object
- Ogam::User
- Defined in:
- lib/ogam/user.rb
Overview
Methods relating to users
Class Method Summary collapse
- .active_by_email(email) ⇒ Object
- .active_for_domain(domain) ⇒ Object
- .job_titles_for_user(user) ⇒ Object
Class Method Details
.active_by_email(email) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ogam/user.rb', line 10 def self.active_by_email(email) Ogam::Execute.fetch_csv( "gam print users allfields query 'email=#{email} isSuspended=False'", pretend: false ) end |
.active_for_domain(domain) ⇒ Object
6 7 8 |
# File 'lib/ogam/user.rb', line 6 def self.active_for_domain(domain) Ogam::Execute.fetch_csv("gam print users allfields domain #{domain} query 'isSuspended=False'", pretend: false) end |
.job_titles_for_user(user) ⇒ Object
17 18 19 |
# File 'lib/ogam/user.rb', line 17 def self.job_titles_for_user(user) JobTitle.job_titles(user["organizations.0.title"]) end |