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

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

Returns a new instance of FreeBusyCalendar.



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

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



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

def busy
  @busy
end

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

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



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

def errors
  @errors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1929
1930
1931
1932
# File 'lib/google/apis/calendar_v3/classes.rb', line 1929

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