Class: Google::Apis::PlusV1::Person::Name
- Inherits:
-
Object
- Object
- Google::Apis::PlusV1::Person::Name
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/plus_v1/classes.rb,
generated/google/apis/plus_v1/representations.rb,
generated/google/apis/plus_v1/representations.rb
Overview
An object representation of the individual components of a person's name.
Instance Attribute Summary collapse
-
#family_name ⇒ String
The family name (last name) of this person.
-
#formatted ⇒ String
The full name of this person, including middle names, suffixes, etc.
-
#given_name ⇒ String
The given name (first name) of this person.
-
#honorific_prefix ⇒ String
The honorific prefixes (such as "Dr." or "Mrs.") for this person.
-
#honorific_suffix ⇒ String
The honorific suffixes (such as "Jr.") for this person.
-
#middle_name ⇒ String
The middle name of this person.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Name
constructor
A new instance of Name.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Name
Returns a new instance of Name
1816 1817 1818 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1816 def initialize(**args) update!(**args) end |
Instance Attribute Details
#family_name ⇒ String
The family name (last name) of this person.
Corresponds to the JSON property familyName
1789 1790 1791 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1789 def family_name @family_name end |
#formatted ⇒ String
The full name of this person, including middle names, suffixes, etc.
Corresponds to the JSON property formatted
1794 1795 1796 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1794 def formatted @formatted end |
#given_name ⇒ String
The given name (first name) of this person.
Corresponds to the JSON property givenName
1799 1800 1801 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1799 def given_name @given_name end |
#honorific_prefix ⇒ String
The honorific prefixes (such as "Dr." or "Mrs.") for this person.
Corresponds to the JSON property honorificPrefix
1804 1805 1806 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1804 def honorific_prefix @honorific_prefix end |
#honorific_suffix ⇒ String
The honorific suffixes (such as "Jr.") for this person.
Corresponds to the JSON property honorificSuffix
1809 1810 1811 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1809 def honorific_suffix @honorific_suffix end |
#middle_name ⇒ String
The middle name of this person.
Corresponds to the JSON property middleName
1814 1815 1816 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1814 def middle_name @middle_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1821 1822 1823 1824 1825 1826 1827 1828 |
# 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 |