Class: Google::Apis::ClassroomV1::UserProfile
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::UserProfile
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb
Overview
Global information for a user.
Instance Attribute Summary collapse
-
#email_address ⇒ String
Email address of the user.
-
#id ⇒ String
Identifier of the user.
-
#name ⇒ Google::Apis::ClassroomV1::Name
Details of the user's name.
-
#permissions ⇒ Array<Google::Apis::ClassroomV1::GlobalPermission>
Global permissions of the user.
-
#photo_url ⇒ String
URL of user's profile photo.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserProfile
constructor
A new instance of UserProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserProfile
Returns a new instance of UserProfile
241 242 243 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 241 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email_address ⇒ String
Email address of the user.
Read-only.
Corresponds to the JSON property emailAddress
222 223 224 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 222 def email_address @email_address end |
#id ⇒ String
Identifier of the user.
Read-only.
Corresponds to the JSON property id
216 217 218 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 216 def id @id end |
#name ⇒ Google::Apis::ClassroomV1::Name
Details of the user's name.
Corresponds to the JSON property name
239 240 241 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 239 def name @name end |
#permissions ⇒ Array<Google::Apis::ClassroomV1::GlobalPermission>
Global permissions of the user.
Read-only.
Corresponds to the JSON property permissions
234 235 236 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 234 def @permissions end |
#photo_url ⇒ String
URL of user's profile photo.
Read-only.
Corresponds to the JSON property photoUrl
228 229 230 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 228 def photo_url @photo_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
246 247 248 249 250 251 252 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 246 def update!(**args) @id = args[:id] if args.key?(:id) @email_address = args[:email_address] if args.key?(:email_address) @photo_url = args[:photo_url] if args.key?(:photo_url) @permissions = args[:permissions] if args.key?(:permissions) @name = args[:name] if args.key?(:name) end |