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

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

Overview

A gadget that extends this event. Gadgets are deprecated; this structure is instead only used for returning birthday calendar metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Gadget

Returns a new instance of Gadget.



1523
1524
1525
# File 'lib/google/apis/calendar_v3/classes.rb', line 1523

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

Instance Attribute Details

#display_modeString

The gadget's display mode. Deprecated. 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)


1484
1485
1486
# File 'lib/google/apis/calendar_v3/classes.rb', line 1484

def display_mode
  @display_mode
end

#heightFixnum

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

Returns:

  • (Fixnum)


1490
1491
1492
# File 'lib/google/apis/calendar_v3/classes.rb', line 1490

def height
  @height
end

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

Returns:

  • (String)


1495
1496
1497
# File 'lib/google/apis/calendar_v3/classes.rb', line 1495

def icon_link
  @icon_link
end

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

Returns:

  • (String)


1500
1501
1502
# File 'lib/google/apis/calendar_v3/classes.rb', line 1500

def link
  @link
end

#preferencesHash<String,String>

Preferences. Corresponds to the JSON property preferences

Returns:

  • (Hash<String,String>)


1505
1506
1507
# File 'lib/google/apis/calendar_v3/classes.rb', line 1505

def preferences
  @preferences
end

#titleString

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

Returns:

  • (String)


1510
1511
1512
# File 'lib/google/apis/calendar_v3/classes.rb', line 1510

def title
  @title
end

#typeString

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

Returns:

  • (String)


1515
1516
1517
# File 'lib/google/apis/calendar_v3/classes.rb', line 1515

def type
  @type
end

#widthFixnum

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

Returns:

  • (Fixnum)


1521
1522
1523
# File 'lib/google/apis/calendar_v3/classes.rb', line 1521

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
# File 'lib/google/apis/calendar_v3/classes.rb', line 1528

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