class Google::Apis::CalendarV3::Event::Gadget

A gadget that extends this event.

Attributes

display_mode[RW]

The gadget's display mode. Optional. Possible values are:

  • “icon” - The gadget displays next to the event's title in the calendar view.

  • “chip” - The gadget displays when the event is clicked.

Corresponds to the JSON property `display` @return [String]

height[RW]

The gadget's height in pixels. The height must be an integer greater than 0. Optional. Corresponds to the JSON property `height` @return [Fixnum]

preferences[RW]

Preferences. Corresponds to the JSON property `preferences` @return [Hash<String,String>]

title[RW]

The gadget's title. Corresponds to the JSON property `title` @return [String]

type[RW]

The gadget's type. Corresponds to the JSON property `type` @return [String]

width[RW]

The gadget's width in pixels. The width must be an integer greater than 0. Optional. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/calendar_v3/classes.rb, line 1057
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/calendar_v3/classes.rb, line 1062
def update!(**args)
  @display_mode = args[:display_mode] if args.key?(:display_mode)
  @height = args[:height] if args.key?(:height)
  @icon_link = args[:icon_link] if args.key?(:icon_link)
  @link = args[:link] if args.key?(:link)
  @preferences = args[:preferences] if args.key?(:preferences)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
  @width = args[:width] if args.key?(:width)
end