Class: Google::Apis::YoutubeV3::ChannelSectionTargeting
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::ChannelSectionTargeting
- 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
-
#countries ⇒ Array<String>
The country the channel section is targeting.
-
#languages ⇒ Array<String>
The language the channel section is targeting.
-
#regions ⇒ Array<String>
The region the channel section is targeting.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChannelSectionTargeting
constructor
A new instance of ChannelSectionTargeting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ChannelSectionTargeting
Returns a new instance of ChannelSectionTargeting.
1612 1613 1614 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 1612 def initialize(**args) update!(**args) end |
Instance Attribute Details
#countries ⇒ Array<String>
The country the channel section is targeting.
Corresponds to the JSON property countries
1600 1601 1602 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 1600 def countries @countries end |
#languages ⇒ Array<String>
The language the channel section is targeting.
Corresponds to the JSON property languages
1605 1606 1607 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 1605 def languages @languages end |
#regions ⇒ Array<String>
The region the channel section is targeting.
Corresponds to the JSON property regions
1610 1611 1612 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 1610 def regions @regions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1617 1618 1619 1620 1621 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 1617 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 |