Class: Google::Apis::ClassroomV1::Name

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

Overview

Details of the user's name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Name

Returns a new instance of Name.



2382
2383
2384
# File 'lib/google/apis/classroom_v1/classes.rb', line 2382

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

Instance Attribute Details

#family_nameString

The user's last name. Read-only. Corresponds to the JSON property familyName

Returns:

  • (String)


2369
2370
2371
# File 'lib/google/apis/classroom_v1/classes.rb', line 2369

def family_name
  @family_name
end

#full_nameString

The user's full name formed by concatenating the first and last name values. Read-only. Corresponds to the JSON property fullName

Returns:

  • (String)


2375
2376
2377
# File 'lib/google/apis/classroom_v1/classes.rb', line 2375

def full_name
  @full_name
end

#given_nameString

The user's first name. Read-only. Corresponds to the JSON property givenName

Returns:

  • (String)


2380
2381
2382
# File 'lib/google/apis/classroom_v1/classes.rb', line 2380

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2387
2388
2389
2390
2391
# File 'lib/google/apis/classroom_v1/classes.rb', line 2387

def update!(**args)
  @family_name = args[:family_name] if args.key?(:family_name)
  @full_name = args[:full_name] if args.key?(:full_name)
  @given_name = args[:given_name] if args.key?(:given_name)
end