Class: Google::Apis::CalendarV3::EventHabitInstance

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

Returns a new instance of EventHabitInstance



1424
1425
1426
# File 'generated/google/apis/calendar_v3/classes.rb', line 1424

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

Instance Attribute Details

#dataGoogle::Apis::CalendarV3::HabitInstanceData

Metadata specific to this instance. Corresponds to the JSON property data



1417
1418
1419
# File 'generated/google/apis/calendar_v3/classes.rb', line 1417

def data
  @data
end

#parent_idString

Id of the habit this instance belongs to. Corresponds to the JSON property parentId

Returns:

  • (String)


1422
1423
1424
# File 'generated/google/apis/calendar_v3/classes.rb', line 1422

def parent_id
  @parent_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1429
1430
1431
1432
# File 'generated/google/apis/calendar_v3/classes.rb', line 1429

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