Class: Google::Apis::PeopleV1::Name

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/people_v1/classes.rb,
lib/google/apis/people_v1/representations.rb,
lib/google/apis/people_v1/representations.rb

Overview

A person's name. If the name is a mononym, the family name is empty.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Name

Returns a new instance of Name.



1679
1680
1681
# File 'lib/google/apis/people_v1/classes.rb', line 1679

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Output only. The display name formatted according to the locale specified by the viewer's account or the Accept-Language HTTP header. Corresponds to the JSON property displayName

Returns:

  • (String)


1605
1606
1607
# File 'lib/google/apis/people_v1/classes.rb', line 1605

def display_name
  @display_name
end

#display_name_last_firstString

Output only. The display name with the last name first formatted according to the locale specified by the viewer's account or the Accept-Language HTTP header. Corresponds to the JSON property displayNameLastFirst

Returns:

  • (String)


1612
1613
1614
# File 'lib/google/apis/people_v1/classes.rb', line 1612

def display_name_last_first
  @display_name_last_first
end

#family_nameString

The family name. Corresponds to the JSON property familyName

Returns:

  • (String)


1617
1618
1619
# File 'lib/google/apis/people_v1/classes.rb', line 1617

def family_name
  @family_name
end

#given_nameString

The given name. Corresponds to the JSON property givenName

Returns:

  • (String)


1622
1623
1624
# File 'lib/google/apis/people_v1/classes.rb', line 1622

def given_name
  @given_name
end

#honorific_prefixString

The honorific prefixes, such as Mrs. or Dr. Corresponds to the JSON property honorificPrefix

Returns:

  • (String)


1627
1628
1629
# File 'lib/google/apis/people_v1/classes.rb', line 1627

def honorific_prefix
  @honorific_prefix
end

#honorific_suffixString

The honorific suffixes, such as Jr. Corresponds to the JSON property honorificSuffix

Returns:

  • (String)


1632
1633
1634
# File 'lib/google/apis/people_v1/classes.rb', line 1632

def honorific_suffix
  @honorific_suffix
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1637
1638
1639
# File 'lib/google/apis/people_v1/classes.rb', line 1637

def 
  @metadata
end

#middle_nameString

The middle name(s). Corresponds to the JSON property middleName

Returns:

  • (String)


1642
1643
1644
# File 'lib/google/apis/people_v1/classes.rb', line 1642

def middle_name
  @middle_name
end

#phonetic_family_nameString

The family name spelled as it sounds. Corresponds to the JSON property phoneticFamilyName

Returns:

  • (String)


1647
1648
1649
# File 'lib/google/apis/people_v1/classes.rb', line 1647

def phonetic_family_name
  @phonetic_family_name
end

#phonetic_full_nameString

The full name spelled as it sounds. Corresponds to the JSON property phoneticFullName

Returns:

  • (String)


1652
1653
1654
# File 'lib/google/apis/people_v1/classes.rb', line 1652

def phonetic_full_name
  @phonetic_full_name
end

#phonetic_given_nameString

The given name spelled as it sounds. Corresponds to the JSON property phoneticGivenName

Returns:

  • (String)


1657
1658
1659
# File 'lib/google/apis/people_v1/classes.rb', line 1657

def phonetic_given_name
  @phonetic_given_name
end

#phonetic_honorific_prefixString

The honorific prefixes spelled as they sound. Corresponds to the JSON property phoneticHonorificPrefix

Returns:

  • (String)


1662
1663
1664
# File 'lib/google/apis/people_v1/classes.rb', line 1662

def phonetic_honorific_prefix
  @phonetic_honorific_prefix
end

#phonetic_honorific_suffixString

The honorific suffixes spelled as they sound. Corresponds to the JSON property phoneticHonorificSuffix

Returns:

  • (String)


1667
1668
1669
# File 'lib/google/apis/people_v1/classes.rb', line 1667

def phonetic_honorific_suffix
  @phonetic_honorific_suffix
end

#phonetic_middle_nameString

The middle name(s) spelled as they sound. Corresponds to the JSON property phoneticMiddleName

Returns:

  • (String)


1672
1673
1674
# File 'lib/google/apis/people_v1/classes.rb', line 1672

def phonetic_middle_name
  @phonetic_middle_name
end

#unstructured_nameString

The free form name value. Corresponds to the JSON property unstructuredName

Returns:

  • (String)


1677
1678
1679
# File 'lib/google/apis/people_v1/classes.rb', line 1677

def unstructured_name
  @unstructured_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
# File 'lib/google/apis/people_v1/classes.rb', line 1684

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
  @family_name = args[:family_name] if args.key?(:family_name)
  @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)
  @metadata = args[:metadata] if args.key?(:metadata)
  @middle_name = args[:middle_name] if args.key?(:middle_name)
  @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
  @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
  @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
  @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
  @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
  @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
  @unstructured_name = args[:unstructured_name] if args.key?(:unstructured_name)
end