class Google::Apis::AuthorizedbuyersmarketplaceV1::DayPart

Defines targeting for a period of time on a specific week day.

Attributes

day_of_week[RW]

Day of week for the period. Corresponds to the JSON property ‘dayOfWeek` @return [String]

end_time[RW]

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and ‘google.protobuf.Timestamp`. Corresponds to the JSON property `endTime` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::TimeOfDay]

start_time[RW]

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and ‘google.protobuf.Timestamp`. Corresponds to the JSON property `startTime` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::TimeOfDay]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb, line 487
def update!(**args)
  @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end