Class: GAppsProvisioning::UserEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/gappsprovisioning/provisioningapi.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



691
692
693
694
695
696
697
698
699
700
701
# File 'lib/gappsprovisioning/provisioningapi.rb', line 691

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"]
	@change_password_at_next_login = 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.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def admin
  @admin
end

#agreed_to_termsObject (readonly)

Returns the value of attribute agreed_to_terms.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def agreed_to_terms
  @agreed_to_terms
end

#change_password_at_next_loginObject (readonly)

Returns the value of attribute change_password_at_next_login.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def 
  @change_password_at_next_login
end

#family_nameObject (readonly)

Returns the value of attribute family_name.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def family_name
  @family_name
end

#given_nameObject (readonly)

Returns the value of attribute given_name.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def given_name
  @given_name
end

#ip_whitelistedObject (readonly)

Returns the value of attribute ip_whitelisted.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def ip_whitelisted
  @ip_whitelisted
end

#quota_limitObject (readonly)

Returns the value of attribute quota_limit.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def quota_limit
  @quota_limit
end

#suspendedObject (readonly)

Returns the value of attribute suspended.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def suspended
  @suspended
end

#usernameObject (readonly)

Returns the value of attribute username.



688
689
690
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688

def username
  @username
end