Class: Google::Apis::DisplayvideoV4::DayAndTime

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb

Overview

Representation of time defined by day of the week and hour of the day.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DayAndTime

Returns a new instance of DayAndTime.



6316
6317
6318
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 6316

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

Instance Attribute Details

#day_of_weekString

Required. Day of the week. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


6304
6305
6306
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 6304

def day_of_week
  @day_of_week
end

#hour_of_dayFixnum

Required. Hour of the day. Corresponds to the JSON property hourOfDay

Returns:

  • (Fixnum)


6309
6310
6311
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 6309

def hour_of_day
  @hour_of_day
end

#time_zone_resolutionString

Required. The mechanism used to determine the relevant timezone. Corresponds to the JSON property timeZoneResolution

Returns:

  • (String)


6314
6315
6316
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 6314

def time_zone_resolution
  @time_zone_resolution
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6321
6322
6323
6324
6325
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 6321

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