Class: Google::Apis::DisplayvideoV3::DayAndTime
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::DayAndTime
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
Representation of time defined by day of the week and hour of the day.
Instance Attribute Summary collapse
-
#day_of_week ⇒ String
Required.
-
#hour_of_day ⇒ Fixnum
Required.
-
#time_zone_resolution ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DayAndTime
constructor
A new instance of DayAndTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DayAndTime
Returns a new instance of DayAndTime.
5982 5983 5984 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5982 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_week ⇒ String
Required. Day of the week.
Corresponds to the JSON property dayOfWeek
5970 5971 5972 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5970 def day_of_week @day_of_week end |
#hour_of_day ⇒ Fixnum
Required. Hour of the day.
Corresponds to the JSON property hourOfDay
5975 5976 5977 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5975 def hour_of_day @hour_of_day end |
#time_zone_resolution ⇒ String
Required. The mechanism used to determine the relevant timezone.
Corresponds to the JSON property timeZoneResolution
5980 5981 5982 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5980 def time_zone_resolution @time_zone_resolution end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5987 5988 5989 5990 5991 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5987 def update!(**args) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @hour_of_day = args[:hour_of_day] if args.key?(:hour_of_day) @time_zone_resolution = args[:time_zone_resolution] if args.key?(:time_zone_resolution) end |