Class: Google::Apis::PeopleV1::Residence

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

Overview

A person's past or current residence.

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

Returns a new instance of Residence



1944
1945
1946
# File 'generated/google/apis/people_v1/classes.rb', line 1944

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

Instance Attribute Details

#currentBoolean Also known as: current?

True if the residence is the person's current residence; false if the residence is a past residence. Corresponds to the JSON property current

Returns:

  • (Boolean)


1931
1932
1933
# File 'generated/google/apis/people_v1/classes.rb', line 1931

def current
  @current
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1937
1938
1939
# File 'generated/google/apis/people_v1/classes.rb', line 1937

def 
  @metadata
end

#valueString

The address of the residence. Corresponds to the JSON property value

Returns:

  • (String)


1942
1943
1944
# File 'generated/google/apis/people_v1/classes.rb', line 1942

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1949
1950
1951
1952
1953
# File 'generated/google/apis/people_v1/classes.rb', line 1949

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