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.



533
534
535
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 533

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



526
527
528
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 526

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)


531
532
533
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 531

def time_zone_type
  @time_zone_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



538
539
540
541
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 538

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