Class: Google::Apis::PeopleV1::Location

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

A person's location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



1474
1475
1476
# File 'lib/google/apis/people_v1/classes.rb', line 1474

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

Instance Attribute Details

#building_idString

The building identifier. Corresponds to the JSON property buildingId

Returns:

  • (String)


1435
1436
1437
# File 'lib/google/apis/people_v1/classes.rb', line 1435

def building_id
  @building_id
end

#currentBoolean Also known as: current?

Whether the location is the current location. Corresponds to the JSON property current

Returns:

  • (Boolean)


1440
1441
1442
# File 'lib/google/apis/people_v1/classes.rb', line 1440

def current
  @current
end

#desk_codeString

The individual desk location. Corresponds to the JSON property deskCode

Returns:

  • (String)


1446
1447
1448
# File 'lib/google/apis/people_v1/classes.rb', line 1446

def desk_code
  @desk_code
end

#floorString

The floor name or number. Corresponds to the JSON property floor

Returns:

  • (String)


1451
1452
1453
# File 'lib/google/apis/people_v1/classes.rb', line 1451

def floor
  @floor
end

#floor_sectionString

The floor section in floor_name. Corresponds to the JSON property floorSection

Returns:

  • (String)


1456
1457
1458
# File 'lib/google/apis/people_v1/classes.rb', line 1456

def floor_section
  @floor_section
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1461
1462
1463
# File 'lib/google/apis/people_v1/classes.rb', line 1461

def 
  @metadata
end

#typeString

The type of the location. The type can be custom or one of these predefined values: * desk * grewUp Corresponds to the JSON property type

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/people_v1/classes.rb', line 1467

def type
  @type
end

#valueString

The free-form value of the location. Corresponds to the JSON property value

Returns:

  • (String)


1472
1473
1474
# File 'lib/google/apis/people_v1/classes.rb', line 1472

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
# File 'lib/google/apis/people_v1/classes.rb', line 1479

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