Class: Google::Apis::ClassroomV1beta1::Name
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1beta1::Name
- 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
-
#family_name ⇒ String
The user's last name.
-
#full_name ⇒ String
The user's full name formed by concatenating the first and last name values.
-
#given_name ⇒ String
The user's first name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Name
constructor
A new instance of Name.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
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_name ⇒ String
The user's last name. Read-only
Corresponds to the JSON property familyName
287 288 289 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 287 def family_name @family_name end |
#full_name ⇒ String
The user's full name formed by concatenating the first and last name values.
Read-only
Corresponds to the JSON property fullName
293 294 295 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 293 def full_name @full_name end |
#given_name ⇒ String
The user's first name. Read-only
Corresponds to the JSON property givenName
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 |