Class: Google::Apis::PlusDomainsV1::Person::PlacesLived

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

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) ⇒ 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

#primaryBoolean Also known as: primary?

If "true", this place of residence is this person's primary residence. Corresponds to the JSON property primary

Returns:

  • (Boolean)


2388
2389
2390
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2388

def primary
  @primary
end

#valueString

A place where this person has lived. For example: "Seattle, WA", "Near Toronto" . Corresponds to the JSON property value

Returns:

  • (String)


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