Class: Google::Apis::PeopleV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Location
- 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
-
#building_id ⇒ String
The building identifier.
-
#current ⇒ Boolean
(also: #current?)
Whether the location is the current location.
-
#desk_code ⇒ String
The individual desk location.
-
#floor ⇒ String
The floor name or number.
-
#floor_section ⇒ String
The floor section in
floor_name. -
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#type ⇒ String
The type of the location.
-
#value ⇒ String
The free-form value of the location.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
1276 1277 1278 |
# File 'lib/google/apis/people_v1/classes.rb', line 1276 def initialize(**args) update!(**args) end |
Instance Attribute Details
#building_id ⇒ String
The building identifier.
Corresponds to the JSON property buildingId
1237 1238 1239 |
# File 'lib/google/apis/people_v1/classes.rb', line 1237 def building_id @building_id end |
#current ⇒ Boolean Also known as: current?
Whether the location is the current location.
Corresponds to the JSON property current
1242 1243 1244 |
# File 'lib/google/apis/people_v1/classes.rb', line 1242 def current @current end |
#desk_code ⇒ String
The individual desk location.
Corresponds to the JSON property deskCode
1248 1249 1250 |
# File 'lib/google/apis/people_v1/classes.rb', line 1248 def desk_code @desk_code end |
#floor ⇒ String
The floor name or number.
Corresponds to the JSON property floor
1253 1254 1255 |
# File 'lib/google/apis/people_v1/classes.rb', line 1253 def floor @floor end |
#floor_section ⇒ String
The floor section in floor_name.
Corresponds to the JSON property floorSection
1258 1259 1260 |
# File 'lib/google/apis/people_v1/classes.rb', line 1258 def floor_section @floor_section end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
1263 1264 1265 |
# File 'lib/google/apis/people_v1/classes.rb', line 1263 def @metadata end |
#type ⇒ String
The type of the location. The type can be custom or one of these predefined
values: * desk * grewUp
Corresponds to the JSON property type
1269 1270 1271 |
# File 'lib/google/apis/people_v1/classes.rb', line 1269 def type @type end |
#value ⇒ String
The free-form value of the location.
Corresponds to the JSON property value
1274 1275 1276 |
# File 'lib/google/apis/people_v1/classes.rb', line 1274 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'lib/google/apis/people_v1/classes.rb', line 1281 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 |