Class: Google::Apis::DisplayvideoV2::DayAndTimeAssignedTargetingOptionDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DayAndTimeAssignedTargetingOptionDetails

Returns a new instance of DayAndTimeAssignedTargetingOptionDetails.



4546
4547
4548
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4546

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#day_of_weekString

Required. The day of the week for this day and time targeting setting. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


4526
4527
4528
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4526

def day_of_week
  @day_of_week
end

#end_hourFixnum

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

Returns:

  • (Fixnum)


4532
4533
4534
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4532

def end_hour
  @end_hour
end

#start_hourFixnum

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

Returns:

  • (Fixnum)


4538
4539
4540
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4538

def start_hour
  @start_hour
end

#time_zone_resolutionString

Required. The mechanism used to determine which timezone to use for this day and time targeting setting. Corresponds to the JSON property timeZoneResolution

Returns:

  • (String)


4544
4545
4546
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4544

def time_zone_resolution
  @time_zone_resolution
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4551
4552
4553
4554
4555
4556
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4551

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