Class: Google::Apis::ClassroomV1beta1::UserProfile

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable
Defined in:
generated/google/apis/classroom_v1beta1/classes.rb,
generated/google/apis/classroom_v1beta1/representations.rb,
generated/google/apis/classroom_v1beta1/representations.rb

Overview

Global information for a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserProfile

Returns a new instance of UserProfile



261
262
263
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 261

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#email_addressString

E-mail address of the user. Read-only Corresponds to the JSON property emailAddress

Returns:

  • (String)


249
250
251
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 249

def email_address
  @email_address
end

#idString

Unique identifier of the user. Read-only Corresponds to the JSON property id

Returns:

  • (String)


239
240
241
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 239

def id
  @id
end

#nameGoogle::Apis::ClassroomV1beta1::Name

Details of the user's name. Corresponds to the JSON property name



244
245
246
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 244

def name
  @name
end

#permissionsArray<Google::Apis::ClassroomV1beta1::GlobalPermission>

Global permissions of the user. Read-only Corresponds to the JSON property permissions



259
260
261
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 259

def permissions
  @permissions
end

#photo_urlString

Url of user's profile photo. Read-only Corresponds to the JSON property photoUrl

Returns:

  • (String)


254
255
256
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 254

def photo_url
  @photo_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



266
267
268
269
270
271
272
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 266

def update!(**args)
  @id = args[:id] unless args[:id].nil?
  @name = args[:name] unless args[:name].nil?
  @email_address = args[:email_address] unless args[:email_address].nil?
  @photo_url = args[:photo_url] unless args[:photo_url].nil?
  @permissions = args[:permissions] unless args[:permissions].nil?
end