Class: Google::Apis::CalendarV3::FreeBusyResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FreeBusyResponse

Returns a new instance of FreeBusyResponse



1955
1956
1957
# File 'generated/google/apis/calendar_v3/classes.rb', line 1955

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

Instance Attribute Details

#calendarsHash<String,Google::Apis::CalendarV3::FreeBusyCalendar>

List of free/busy information for calendars. Corresponds to the JSON property calendars



1933
1934
1935
# File 'generated/google/apis/calendar_v3/classes.rb', line 1933

def calendars
  @calendars
end

#groupsHash<String,Google::Apis::CalendarV3::FreeBusyGroup>

Expansion of groups. Corresponds to the JSON property groups

Returns:



1938
1939
1940
# File 'generated/google/apis/calendar_v3/classes.rb', line 1938

def groups
  @groups
end

#kindString

Type of the resource ("calendar#freeBusy"). Corresponds to the JSON property kind

Returns:

  • (String)


1943
1944
1945
# File 'generated/google/apis/calendar_v3/classes.rb', line 1943

def kind
  @kind
end

#time_maxDateTime

The end of the interval. Corresponds to the JSON property timeMax

Returns:

  • (DateTime)


1948
1949
1950
# File 'generated/google/apis/calendar_v3/classes.rb', line 1948

def time_max
  @time_max
end

#time_minDateTime

The start of the interval. Corresponds to the JSON property timeMin

Returns:

  • (DateTime)


1953
1954
1955
# File 'generated/google/apis/calendar_v3/classes.rb', line 1953

def time_min
  @time_min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1960
1961
1962
1963
1964
1965
1966
# File 'generated/google/apis/calendar_v3/classes.rb', line 1960

def update!(**args)
  @calendars = args[:calendars] if args.key?(:calendars)
  @groups = args[:groups] if args.key?(:groups)
  @kind = args[:kind] if args.key?(:kind)
  @time_max = args[:time_max] if args.key?(:time_max)
  @time_min = args[:time_min] if args.key?(:time_min)
end