Class: Google::Apis::CalendarV3::EventDateTime
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CalendarV3::EventDateTime
 
- Defined in:
- generated/google/apis/calendar_v3/classes.rb,
 generated/google/apis/calendar_v3/representations.rb,
 generated/google/apis/calendar_v3/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #date  ⇒ Date 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date, in the format "yyyy-mm-dd", if this is an all-day event. 
- 
  
    
      #date_time  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time, as a combined date-time value (formatted according to RFC3339). 
- 
  
    
      #time_zone  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time zone in which the time is specified. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ EventDateTime 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of EventDateTime. 
- 
  
    
      #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) ⇒ EventDateTime
Returns a new instance of EventDateTime
| 1716 1717 1718 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1716 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#date ⇒ Date
The date, in the format "yyyy-mm-dd", if this is an all-day event.
Corresponds to the JSON property date
| 1698 1699 1700 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1698 def date @date end | 
#date_time ⇒ DateTime
The time, as a combined date-time value (formatted according to RFC3339). A
time zone offset is required unless a time zone is explicitly specified in
timeZone.
Corresponds to the JSON property dateTime
| 1705 1706 1707 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1705 def date_time @date_time end | 
#time_zone ⇒ String
The time zone in which the time is specified. (Formatted as an IANA Time Zone
Database name, e.g. "Europe/Zurich".) For recurring events this field is
required and specifies the time zone in which the recurrence is expanded. For
single events this field is optional and indicates a custom time zone for the
event start/end.
Corresponds to the JSON property timeZone
| 1714 1715 1716 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1714 def time_zone @time_zone end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1721 1722 1723 1724 1725 | # File 'generated/google/apis/calendar_v3/classes.rb', line 1721 def update!(**args) @date = args[:date] if args.key?(:date) @date_time = args[:date_time] if args.key?(:date_time) @time_zone = args[:time_zone] if args.key?(:time_zone) end |