Class: Google::Apis::CalendarV3::EventWorkingLocationProperties::OfficeLocation

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

Overview

If present, specifies that the user is working from an office.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OfficeLocation

Returns a new instance of OfficeLocation.



1916
1917
1918
# File 'lib/google/apis/calendar_v3/classes.rb', line 1916

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

Instance Attribute Details

#building_idString

An optional building identifier. This should reference a building ID in the organization's Resources database. Corresponds to the JSON property buildingId

Returns:

  • (String)


1894
1895
1896
# File 'lib/google/apis/calendar_v3/classes.rb', line 1894

def building_id
  @building_id
end

#desk_idString

An optional arbitrary desk identifier. Corresponds to the JSON property deskId

Returns:

  • (String)


1899
1900
1901
# File 'lib/google/apis/calendar_v3/classes.rb', line 1899

def desk_id
  @desk_id
end

#floor_idString

An optional arbitrary floor identifier. Corresponds to the JSON property floorId

Returns:

  • (String)


1904
1905
1906
# File 'lib/google/apis/calendar_v3/classes.rb', line 1904

def floor_id
  @floor_id
end

#floor_section_idString

An optional arbitrary floor section identifier. Corresponds to the JSON property floorSectionId

Returns:

  • (String)


1909
1910
1911
# File 'lib/google/apis/calendar_v3/classes.rb', line 1909

def floor_section_id
  @floor_section_id
end

#labelString

An optional extra label for additional information. Corresponds to the JSON property label

Returns:

  • (String)


1914
1915
1916
# File 'lib/google/apis/calendar_v3/classes.rb', line 1914

def label
  @label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1921
1922
1923
1924
1925
1926
1927
# File 'lib/google/apis/calendar_v3/classes.rb', line 1921

def update!(**args)
  @building_id = args[:building_id] if args.key?(:building_id)
  @desk_id = args[:desk_id] if args.key?(:desk_id)
  @floor_id = args[:floor_id] if args.key?(:floor_id)
  @floor_section_id = args[:floor_section_id] if args.key?(:floor_section_id)
  @label = args[:label] if args.key?(:label)
end