Class: Google::Apis::PeopleV1::Residence
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Residence
- 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
-
#current ⇒ Boolean
(also: #current?)
True if the residence is the person's current residence; false if the residence is a past residence.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#value ⇒ String
The address of the residence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Residence
constructor
A new instance of Residence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Residence
Returns a new instance of Residence
1948 1949 1950 |
# File 'generated/google/apis/people_v1/classes.rb', line 1948 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current ⇒ Boolean 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
1935 1936 1937 |
# File 'generated/google/apis/people_v1/classes.rb', line 1935 def current @current end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
1941 1942 1943 |
# File 'generated/google/apis/people_v1/classes.rb', line 1941 def @metadata end |
#value ⇒ String
The address of the residence.
Corresponds to the JSON property value
1946 1947 1948 |
# File 'generated/google/apis/people_v1/classes.rb', line 1946 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1953 1954 1955 1956 1957 |
# File 'generated/google/apis/people_v1/classes.rb', line 1953 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 |