Class: GAppsProvisioning::UserEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/provisioning-api.rb

Overview

UserEntry object.

Handles API responses relative to a user

Attributes : username : string given_name : string family_name : string suspended : string “true” or string “false” ip_whitelisted : string “true” or string “false” admin : string “true” or string “false” change_password_at_next_login : string “true” or string “false” agreed_to_terms : string “true” or string “false” quota_limit : string (value in MB)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry) ⇒ UserEntry

UserEntry constructor. Needs a REXML::Element <entry> as parameter



699
700
701
702
703
704
705
706
707
708
709
# File 'lib/provisioning-api.rb', line 699

def initialize(entry) #:nodoc:
    @family_name = entry.elements["apps:name"].attributes["familyName"]
  @given_name = entry.elements["apps:name"].attributes["givenName"]
  @username = entry.elements["apps:login"].attributes["userName"]
  @suspended = entry.elements["apps:login"].attributes["suspended"]
  @ip_whitelisted = entry.elements["apps:login"].attributes["ipWhitelisted"]
  @admin = entry.elements["apps:login"].attributes["admin"]
   = entry.elements["apps:login"].attributes["changePasswordAtNextLogin"]
  @agreed_to_terms = entry.elements["apps:login"].attributes["agreedToTerms"]
  @quota_limit = entry.elements["apps:quota"].attributes["limit"]
end

Instance Attribute Details

#adminObject (readonly)

Returns the value of attribute admin.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def admin
  @admin
end

#agreed_to_termsObject (readonly)

Returns the value of attribute agreed_to_terms.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def agreed_to_terms
  @agreed_to_terms
end

#change_password_at_next_loginObject (readonly)

Returns the value of attribute change_password_at_next_login.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def 
  
end

#family_nameObject (readonly)

Returns the value of attribute family_name.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def family_name
  @family_name
end

#given_nameObject (readonly)

Returns the value of attribute given_name.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def given_name
  @given_name
end

#ip_whitelistedObject (readonly)

Returns the value of attribute ip_whitelisted.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def ip_whitelisted
  @ip_whitelisted
end

#quota_limitObject (readonly)

Returns the value of attribute quota_limit.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def quota_limit
  @quota_limit
end

#suspendedObject (readonly)

Returns the value of attribute suspended.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def suspended
  @suspended
end

#usernameObject (readonly)

Returns the value of attribute username.



696
697
698
# File 'lib/provisioning-api.rb', line 696

def username
  @username
end