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.



541
542
543
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 541

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



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

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)


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

def time_zone_type
  @time_zone_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



546
547
548
549
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 546

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