Class: Google::Apis::PlusV1::Person::PlacesLived

Inherits:
Object
  • Object
show all
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

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



1919
1920
1921
# File 'generated/google/apis/plus_v1/classes.rb', line 1919

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)


1910
1911
1912
# File 'generated/google/apis/plus_v1/classes.rb', line 1910

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)


1917
1918
1919
# File 'generated/google/apis/plus_v1/classes.rb', line 1917

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1924
1925
1926
1927
# File 'generated/google/apis/plus_v1/classes.rb', line 1924

def update!(**args)
  @primary = args[:primary] if args.key?(:primary)
  @value = args[:value] if args.key?(:value)
end