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

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

Details of the user's name.

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) ⇒ Name

Returns a new instance of Name.



697
698
699
# File 'generated/google/apis/classroom_v1/classes.rb', line 697

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)


689
690
691
# File 'generated/google/apis/classroom_v1/classes.rb', line 689

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)


695
696
697
# File 'generated/google/apis/classroom_v1/classes.rb', line 695

def full_name
  @full_name
end

#given_nameString

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

Returns:

  • (String)


684
685
686
# File 'generated/google/apis/classroom_v1/classes.rb', line 684

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



702
703
704
705
706
# File 'generated/google/apis/classroom_v1/classes.rb', line 702

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