Class: GAppsProvisioning::UserEntry
- Inherits:
-
Object
- Object
- GAppsProvisioning::UserEntry
- 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
-
#admin ⇒ Object
readonly
Returns the value of attribute admin.
-
#agreed_to_terms ⇒ Object
readonly
Returns the value of attribute agreed_to_terms.
-
#change_password_at_next_login ⇒ Object
readonly
Returns the value of attribute change_password_at_next_login.
-
#family_name ⇒ Object
readonly
Returns the value of attribute family_name.
-
#given_name ⇒ Object
readonly
Returns the value of attribute given_name.
-
#ip_whitelisted ⇒ Object
readonly
Returns the value of attribute ip_whitelisted.
-
#quota_limit ⇒ Object
readonly
Returns the value of attribute quota_limit.
-
#suspended ⇒ Object
readonly
Returns the value of attribute suspended.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(entry) ⇒ UserEntry
constructor
UserEntry constructor.
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
#admin ⇒ Object (readonly)
Returns the value of attribute admin.
688 689 690 |
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688 def admin @admin end |
#agreed_to_terms ⇒ Object (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_login ⇒ Object (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 @change_password_at_next_login end |
#family_name ⇒ Object (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_name ⇒ Object (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_whitelisted ⇒ Object (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_limit ⇒ Object (readonly)
Returns the value of attribute quota_limit.
688 689 690 |
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688 def quota_limit @quota_limit end |
#suspended ⇒ Object (readonly)
Returns the value of attribute suspended.
688 689 690 |
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688 def suspended @suspended end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
688 689 690 |
# File 'lib/gappsprovisioning/provisioningapi.rb', line 688 def username @username end |