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

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

Overview

ChannelSection targeting setting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelSectionTargeting

Returns a new instance of ChannelSectionTargeting.



1703
1704
1705
# File 'lib/google/apis/youtube_v3/classes.rb', line 1703

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>)


1691
1692
1693
# File 'lib/google/apis/youtube_v3/classes.rb', line 1691

def countries
  @countries
end

#languagesArray<String>

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

Returns:

  • (Array<String>)


1696
1697
1698
# File 'lib/google/apis/youtube_v3/classes.rb', line 1696

def languages
  @languages
end

#regionsArray<String>

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

Returns:

  • (Array<String>)


1701
1702
1703
# File 'lib/google/apis/youtube_v3/classes.rb', line 1701

def regions
  @regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1708
1709
1710
1711
1712
# File 'lib/google/apis/youtube_v3/classes.rb', line 1708

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