Class: Google::Apis::CalendarV3::FreeBusyCalendar

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) ⇒ FreeBusyCalendar

Returns a new instance of FreeBusyCalendar.



1910
1911
1912
# File 'generated/google/apis/calendar_v3/classes.rb', line 1910

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

Instance Attribute Details

#busyArray<Google::Apis::CalendarV3::TimePeriod>

List of time ranges during which this calendar should be regarded as busy. Corresponds to the JSON property busy



1903
1904
1905
# File 'generated/google/apis/calendar_v3/classes.rb', line 1903

def busy
  @busy
end

#errorsArray<Google::Apis::CalendarV3::Error>

Optional error(s) (if computation for the calendar failed). Corresponds to the JSON property errors



1908
1909
1910
# File 'generated/google/apis/calendar_v3/classes.rb', line 1908

def errors
  @errors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @busy = args[:busy] if args.key?(:busy)
  @errors = args[:errors] if args.key?(:errors)
end