Class: Google::Apis::CalendarV3::Colors

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

Returns a new instance of Colors.



606
607
608
# File 'lib/google/apis/calendar_v3/classes.rb', line 606

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

Instance Attribute Details

#calendarHash<String,Google::Apis::CalendarV3::ColorDefinition>

A global palette of calendar colors, mapping from the color ID to its definition. A calendarListEntry resource refers to one of these color IDs in its colorId field. Read-only. Corresponds to the JSON property calendar



586
587
588
# File 'lib/google/apis/calendar_v3/classes.rb', line 586

def calendar
  @calendar
end

#eventHash<String,Google::Apis::CalendarV3::ColorDefinition>

A global palette of event colors, mapping from the color ID to its definition. An event resource may refer to one of these color IDs in its colorId field. Read-only. Corresponds to the JSON property event



593
594
595
# File 'lib/google/apis/calendar_v3/classes.rb', line 593

def event
  @event
end

#kindString

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

Returns:

  • (String)


598
599
600
# File 'lib/google/apis/calendar_v3/classes.rb', line 598

def kind
  @kind
end

#updatedDateTime

Last modification time of the color palette (as a RFC3339 timestamp). Read- only. Corresponds to the JSON property updated

Returns:

  • (DateTime)


604
605
606
# File 'lib/google/apis/calendar_v3/classes.rb', line 604

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



611
612
613
614
615
616
# File 'lib/google/apis/calendar_v3/classes.rb', line 611

def update!(**args)
  @calendar = args[:calendar] if args.key?(:calendar)
  @event = args[:event] if args.key?(:event)
  @kind = args[:kind] if args.key?(:kind)
  @updated = args[:updated] if args.key?(:updated)
end