class Google::Apis::YoutubeV3::VideoAgeGating

Attributes

alcohol_content[RW]

Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content. Corresponds to the JSON property `alcoholContent` @return [Boolean]

alcohol_content?[RW]

Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content. Corresponds to the JSON property `alcoholContent` @return [Boolean]

restricted[RW]

Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present. Corresponds to the JSON property `restricted` @return [Boolean]

restricted?[RW]

Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present. Corresponds to the JSON property `restricted` @return [Boolean]

video_game_rating[RW]

Video game rating, if any. Corresponds to the JSON property `videoGameRating` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 6938
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_v3/classes.rb, line 6943
def update!(**args)
  @alcohol_content = args[:alcohol_content] if args.key?(:alcohol_content)
  @restricted = args[:restricted] if args.key?(:restricted)
  @video_game_rating = args[:video_game_rating] if args.key?(:video_game_rating)
end