Class: Google::Apis::AuthorizedbuyersmarketplaceV1::DayPartTargeting

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

Overview

Represents Daypart targeting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DayPartTargeting

Returns a new instance of DayPartTargeting.



487
488
489
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 487

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

Instance Attribute Details

#day_partsArray<Google::Apis::AuthorizedbuyersmarketplaceV1::DayPart>

The targeted weekdays and times Corresponds to the JSON property dayParts



480
481
482
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 480

def day_parts
  @day_parts
end

#time_zone_typeString

The time zone type of the day parts Corresponds to the JSON property timeZoneType

Returns:

  • (String)


485
486
487
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 485

def time_zone_type
  @time_zone_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



492
493
494
495
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 492

def update!(**args)
  @day_parts = args[:day_parts] if args.key?(:day_parts)
  @time_zone_type = args[:time_zone_type] if args.key?(:time_zone_type)
end