Class: Google::Apis::ClassroomV1beta1::Name

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

Details of the user's name.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Name

Returns a new instance of Name.



295
296
297
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 295

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)


287
288
289
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 287

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)


293
294
295
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 293

def full_name
  @full_name
end

#given_nameString

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

Returns:

  • (String)


282
283
284
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 282

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



300
301
302
303
304
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 300

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