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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FreeBusyResponse

Returns a new instance of FreeBusyResponse.



2266
2267
2268
# File 'lib/google/apis/calendar_v3/classes.rb', line 2266

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



2244
2245
2246
# File 'lib/google/apis/calendar_v3/classes.rb', line 2244

def calendars
  @calendars
end

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

Expansion of groups. Corresponds to the JSON property groups

Returns:



2249
2250
2251
# File 'lib/google/apis/calendar_v3/classes.rb', line 2249

def groups
  @groups
end

#kindString

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

Returns:

  • (String)


2254
2255
2256
# File 'lib/google/apis/calendar_v3/classes.rb', line 2254

def kind
  @kind
end

#time_maxDateTime

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

Returns:

  • (DateTime)


2259
2260
2261
# File 'lib/google/apis/calendar_v3/classes.rb', line 2259

def time_max
  @time_max
end

#time_minDateTime

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

Returns:

  • (DateTime)


2264
2265
2266
# File 'lib/google/apis/calendar_v3/classes.rb', line 2264

def time_min
  @time_min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2271
2272
2273
2274
2275
2276
2277
# File 'lib/google/apis/calendar_v3/classes.rb', line 2271

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