Class: Google::Apis::CalendarV3::Event::Gadget
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CalendarV3::Event::Gadget
 
 
- 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
- 
  
    
      #display_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The gadget's display mode.
 - 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The gadget's height in pixels.
 - 
  
    
      #icon_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The gadget's icon URL.
 - 
  
    
      #link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The gadget's URL.
 - 
  
    
      #preferences  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Preferences.
 - 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The gadget's title.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The gadget's type.
 - 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The gadget's width in pixels.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Gadget 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Gadget.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Gadget
Returns a new instance of Gadget
      1484 1485 1486  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1484 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#display_mode ⇒ String
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 
      1445 1446 1447  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1445 def display_mode @display_mode end  | 
  
#height ⇒ Fixnum
The gadget's height in pixels. The height must be an integer greater than 0.
Optional.
Corresponds to the JSON property height
      1451 1452 1453  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1451 def height @height end  | 
  
#icon_link ⇒ String
The gadget's icon URL. The URL scheme must be HTTPS.
Corresponds to the JSON property iconLink
      1456 1457 1458  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1456 def icon_link @icon_link end  | 
  
#link ⇒ String
The gadget's URL. The URL scheme must be HTTPS.
Corresponds to the JSON property link
      1461 1462 1463  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1461 def link @link end  | 
  
#preferences ⇒ Hash<String,String>
Preferences.
Corresponds to the JSON property preferences
      1466 1467 1468  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1466 def preferences @preferences end  | 
  
#title ⇒ String
The gadget's title.
Corresponds to the JSON property title
      1471 1472 1473  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1471 def title @title end  | 
  
#type ⇒ String
The gadget's type.
Corresponds to the JSON property type
      1476 1477 1478  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1476 def type @type end  | 
  
#width ⇒ Fixnum
The gadget's width in pixels. The width must be an integer greater than 0.
Optional.
Corresponds to the JSON property width
      1482 1483 1484  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1482 def width @width end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1489 1490 1491 1492 1493 1494 1495 1496 1497 1498  | 
    
      # File 'generated/google/apis/calendar_v3/classes.rb', line 1489 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  |