Class: Google::Apis::CalendarV3::HabitInstanceData

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

Returns a new instance of HabitInstanceData



1743
1744
1745
# File 'generated/google/apis/calendar_v3/classes.rb', line 1743

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

Instance Attribute Details

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


1730
1731
1732
# File 'generated/google/apis/calendar_v3/classes.rb', line 1730

def status
  @status
end

#status_inferredBoolean Also known as: status_inferred?

Corresponds to the JSON property statusInferred

Returns:

  • (Boolean)


1735
1736
1737
# File 'generated/google/apis/calendar_v3/classes.rb', line 1735

def status_inferred
  @status_inferred
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


1741
1742
1743
# File 'generated/google/apis/calendar_v3/classes.rb', line 1741

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1748
1749
1750
1751
1752
# File 'generated/google/apis/calendar_v3/classes.rb', line 1748

def update!(**args)
  @status = args[:status] if args.key?(:status)
  @status_inferred = args[:status_inferred] if args.key?(:status_inferred)
  @type = args[:type] if args.key?(:type)
end