Class: Google::Apis::CalendarV3::Event::Gadget

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

Overview

A gadget that extends this event.

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

Returns a new instance of Gadget.


1482
1483
1484
# File 'generated/google/apis/calendar_v3/classes.rb', line 1482

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

Instance Attribute Details

#display_modeString

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

Returns:

  • (String)

1443
1444
1445
# File 'generated/google/apis/calendar_v3/classes.rb', line 1443

def display_mode
  @display_mode
end

#heightFixnum

The gadget's height in pixels. The height must be an integer greater than 0. Optional. Corresponds to the JSON property height

Returns:

  • (Fixnum)

1449
1450
1451
# File 'generated/google/apis/calendar_v3/classes.rb', line 1449

def height
  @height
end

The gadget's icon URL. The URL scheme must be HTTPS. Corresponds to the JSON property iconLink

Returns:

  • (String)

1454
1455
1456
# File 'generated/google/apis/calendar_v3/classes.rb', line 1454

def icon_link
  @icon_link
end

The gadget's URL. The URL scheme must be HTTPS. Corresponds to the JSON property link

Returns:

  • (String)

1459
1460
1461
# File 'generated/google/apis/calendar_v3/classes.rb', line 1459

def link
  @link
end

#preferencesHash<String,String>

Preferences. Corresponds to the JSON property preferences

Returns:

  • (Hash<String,String>)

1464
1465
1466
# File 'generated/google/apis/calendar_v3/classes.rb', line 1464

def preferences
  @preferences
end

#titleString

The gadget's title. Corresponds to the JSON property title

Returns:

  • (String)

1469
1470
1471
# File 'generated/google/apis/calendar_v3/classes.rb', line 1469

def title
  @title
end

#typeString

The gadget's type. Corresponds to the JSON property type

Returns:

  • (String)

1474
1475
1476
# File 'generated/google/apis/calendar_v3/classes.rb', line 1474

def type
  @type
end

#widthFixnum

The gadget's width in pixels. The width must be an integer greater than 0. Optional. Corresponds to the JSON property width

Returns:

  • (Fixnum)

1480
1481
1482
# File 'generated/google/apis/calendar_v3/classes.rb', line 1480

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
# File 'generated/google/apis/calendar_v3/classes.rb', line 1487

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