class Google::Apis::PlusV1::Person::Name

An object representation of the individual components of a person's name.

Attributes

family_name[RW]

The family name (last name) of this person. Corresponds to the JSON property `familyName` @return [String]

formatted[RW]

The full name of this person, including middle names, suffixes, etc. Corresponds to the JSON property `formatted` @return [String]

given_name[RW]

The given name (first name) of this person. Corresponds to the JSON property `givenName` @return [String]

honorific_prefix[RW]

The honorific prefixes (such as “Dr.” or “Mrs.”) for this person. Corresponds to the JSON property `honorificPrefix` @return [String]

honorific_suffix[RW]

The honorific suffixes (such as “Jr.”) for this person. Corresponds to the JSON property `honorificSuffix` @return [String]

middle_name[RW]

The middle name of this person. Corresponds to the JSON property `middleName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/plus_v1/classes.rb, line 1816
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/plus_v1/classes.rb, line 1821
def update!(**args)
  @family_name = args[:family_name] if args.key?(:family_name)
  @formatted = args[:formatted] if args.key?(:formatted)
  @given_name = args[:given_name] if args.key?(:given_name)
  @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
  @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
  @middle_name = args[:middle_name] if args.key?(:middle_name)
end