Class: Google::Apis::YoutubeV3::ChannelSectionTargeting

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

Overview

ChannelSection targeting setting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ChannelSectionTargeting

Returns a new instance of ChannelSectionTargeting.



1593
1594
1595
# File 'generated/google/apis/youtube_v3/classes.rb', line 1593

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

Instance Attribute Details

#countriesArray<String>

The country the channel section is targeting. Corresponds to the JSON property countries

Returns:

  • (Array<String>)


1581
1582
1583
# File 'generated/google/apis/youtube_v3/classes.rb', line 1581

def countries
  @countries
end

#languagesArray<String>

The language the channel section is targeting. Corresponds to the JSON property languages

Returns:

  • (Array<String>)


1586
1587
1588
# File 'generated/google/apis/youtube_v3/classes.rb', line 1586

def languages
  @languages
end

#regionsArray<String>

The region the channel section is targeting. Corresponds to the JSON property regions

Returns:

  • (Array<String>)


1591
1592
1593
# File 'generated/google/apis/youtube_v3/classes.rb', line 1591

def regions
  @regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1598
1599
1600
1601
1602
# File 'generated/google/apis/youtube_v3/classes.rb', line 1598

def update!(**args)
  @countries = args[:countries] if args.key?(:countries)
  @languages = args[:languages] if args.key?(:languages)
  @regions = args[:regions] if args.key?(:regions)
end