class Google::Apis::DisplayvideoV1::DayAndTimeAssignedTargetingOptionDetails

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`.

Attributes

day_of_week[RW]

Required. The day of the week for this day and time targeting setting. Corresponds to the JSON property `dayOfWeek` @return [String]

end_hour[RW]

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` @return [Fixnum]

start_hour[RW]

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` @return [Fixnum]

time_zone_resolution[RW]

Required. The mechanism used to determine which timezone to use for this day and time targeting setting. Corresponds to the JSON property `timeZoneResolution` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/displayvideo_v1/classes.rb, line 3669
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/displayvideo_v1/classes.rb, line 3674
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