Class: Google::Apis::PlusDomainsV1::Person::PlacesLived
- Inherits:
-
Object
- Object
- Google::Apis::PlusDomainsV1::Person::PlacesLived
- 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
Instance Attribute Summary collapse
-
#primary ⇒ Boolean
(also: #primary?)
If "true", this place of residence is this person's primary residence.
-
#value ⇒ String
A place where this person has lived.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlacesLived
constructor
A new instance of PlacesLived.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PlacesLived
Returns a new instance of PlacesLived
2397 2398 2399 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2397 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary ⇒ Boolean Also known as: primary?
If "true", this place of residence is this person's primary residence.
Corresponds to the JSON property primary
2388 2389 2390 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2388 def primary @primary end |
#value ⇒ String
A place where this person has lived. For example: "Seattle, WA", "Near Toronto"
.
Corresponds to the JSON property value
2395 2396 2397 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2395 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2402 2403 2404 2405 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2402 def update!(**args) @primary = args[:primary] if args.key?(:primary) @value = args[:value] if args.key?(:value) end |