Class: Google::Apis::ClassroomV1::UserProfile

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserProfile

Returns a new instance of UserProfile



354
355
356
# File 'generated/google/apis/classroom_v1/classes.rb', line 354

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

Instance Attribute Details

#email_addressString

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

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/classroom_v1/classes.rb', line 335

def email_address
  @email_address
end

#idString

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

Returns:

  • (String)


329
330
331
# File 'generated/google/apis/classroom_v1/classes.rb', line 329

def id
  @id
end

#nameGoogle::Apis::ClassroomV1::Name

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



352
353
354
# File 'generated/google/apis/classroom_v1/classes.rb', line 352

def name
  @name
end

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

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



347
348
349
# File 'generated/google/apis/classroom_v1/classes.rb', line 347

def permissions
  @permissions
end

#photo_urlString

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

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/classroom_v1/classes.rb', line 341

def photo_url
  @photo_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
363
364
365
# File 'generated/google/apis/classroom_v1/classes.rb', line 359

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