Class: Google::Apis::ClassroomV1::Name
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::Name
- 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
-
#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.
Constructor Details
#initialize(**args) ⇒ Name
Returns a new instance of Name.
1806 1807 1808 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1806 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
1793 1794 1795 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1793 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
1799 1800 1801 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1799 def full_name @full_name end |
#given_name ⇒ String
The user's first name. Read-only.
Corresponds to the JSON property givenName
1804 1805 1806 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1804 def given_name @given_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1811 1812 1813 1814 1815 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1811 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 |