class Google::Apis::PeopleV1::Location

A person's location.

Attributes

building_id[RW]

The building identifier. Corresponds to the JSON property `buildingId` @return [String]

current[RW]

Whether the location is the current location. Corresponds to the JSON property `current` @return [Boolean]

current?[RW]

Whether the location is the current location. Corresponds to the JSON property `current` @return [Boolean]

desk_code[RW]

The individual desk location. Corresponds to the JSON property `deskCode` @return [String]

floor[RW]

The floor name or number. Corresponds to the JSON property `floor` @return [String]

floor_section[RW]

The floor section in `floor_name`. Corresponds to the JSON property `floorSection` @return [String]

metadata[RW]

Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]

type[RW]

The type of the location. The type can be custom or one of these predefined values: * `desk` * `grewUp` Corresponds to the JSON property `type` @return [String]

value[RW]

The free-form value of the location. Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/people_v1/classes.rb, line 1472
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/people_v1/classes.rb, line 1477
def update!(**args)
  @building_id = args[:building_id] if args.key?(:building_id)
  @current = args[:current] if args.key?(:current)
  @desk_code = args[:desk_code] if args.key?(:desk_code)
  @floor = args[:floor] if args.key?(:floor)
  @floor_section = args[:floor_section] if args.key?(:floor_section)
  @metadata = args[:metadata] if args.key?(:metadata)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end