Class: Google::Apis::PlusDomainsV1::Person::Name

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Name

Returns a new instance of Name.


2294
2295
2296
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2294

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

Instance Attribute Details

#family_nameString

The family name (last name) of this person. Corresponds to the JSON property familyName

Returns:

  • (String)

2267
2268
2269
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2267

def family_name
  @family_name
end

#formattedString

The full name of this person, including middle names, suffixes, etc. Corresponds to the JSON property formatted

Returns:

  • (String)

2272
2273
2274
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2272

def formatted
  @formatted
end

#given_nameString

The given name (first name) of this person. Corresponds to the JSON property givenName

Returns:

  • (String)

2277
2278
2279
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2277

def given_name
  @given_name
end

#honorific_prefixString

The honorific prefixes (such as "Dr." or "Mrs.") for this person. Corresponds to the JSON property honorificPrefix

Returns:

  • (String)

2282
2283
2284
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2282

def honorific_prefix
  @honorific_prefix
end

#honorific_suffixString

The honorific suffixes (such as "Jr.") for this person. Corresponds to the JSON property honorificSuffix

Returns:

  • (String)

2287
2288
2289
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2287

def honorific_suffix
  @honorific_suffix
end

#middle_nameString

The middle name of this person. Corresponds to the JSON property middleName

Returns:

  • (String)

2292
2293
2294
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2292

def middle_name
  @middle_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2299
2300
2301
2302
2303
2304
2305
2306
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2299

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