Class: Google::Apis::DisplayvideoV1::DayAndTimeAssignedTargetingOptionDetails
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::DayAndTimeAssignedTargetingOptionDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/representations.rb
Overview
Representation of a segment of time defined on a specific day of the week and
with a start and end time. The time represented by start_hour
must be before
the time represented by end_hour
.
Instance Attribute Summary collapse
-
#day_of_week ⇒ String
Required.
-
#end_hour ⇒ Fixnum
Required.
-
#start_hour ⇒ Fixnum
Required.
-
#time_zone_resolution ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DayAndTimeAssignedTargetingOptionDetails
constructor
A new instance of DayAndTimeAssignedTargetingOptionDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DayAndTimeAssignedTargetingOptionDetails
Returns a new instance of DayAndTimeAssignedTargetingOptionDetails.
3242 3243 3244 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3242 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_week ⇒ String
Required. The day of the week for this day and time targeting setting.
Corresponds to the JSON property dayOfWeek
3222 3223 3224 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3222 def day_of_week @day_of_week end |
#end_hour ⇒ Fixnum
Required. The end hour for day and time targeting. Must be between 1 (1 hour
after start of day) and 24 (end of day).
Corresponds to the JSON property endHour
3228 3229 3230 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3228 def end_hour @end_hour end |
#start_hour ⇒ Fixnum
Required. The start hour for day and time targeting. Must be between 0 (start
of day) and 23 (1 hour before end of day).
Corresponds to the JSON property startHour
3234 3235 3236 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3234 def start_hour @start_hour end |
#time_zone_resolution ⇒ String
Required. The mechanism used to determine which timezone to use for this day
and time targeting setting.
Corresponds to the JSON property timeZoneResolution
3240 3241 3242 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3240 def time_zone_resolution @time_zone_resolution end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3247 3248 3249 3250 3251 3252 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3247 def update!(**args) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @end_hour = args[:end_hour] if args.key?(:end_hour) @start_hour = args[:start_hour] if args.key?(:start_hour) @time_zone_resolution = args[:time_zone_resolution] if args.key?(:time_zone_resolution) end |