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

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

Overview

DEPRECATED: Please use person.locations instead. A person's past or current residence.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Residence

Returns a new instance of Residence.



2468
2469
2470
# File 'lib/google/apis/people_v1/classes.rb', line 2468

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)


2455
2456
2457
# File 'lib/google/apis/people_v1/classes.rb', line 2455

def current
  @current
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2461
2462
2463
# File 'lib/google/apis/people_v1/classes.rb', line 2461

def 
  @metadata
end

#valueString

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

Returns:

  • (String)


2466
2467
2468
# File 'lib/google/apis/people_v1/classes.rb', line 2466

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2473
2474
2475
2476
2477
# File 'lib/google/apis/people_v1/classes.rb', line 2473

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