Class: Google::Apis::YoutubeV3::VideoAgeGating

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

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

Returns a new instance of VideoAgeGating.



7117
7118
7119
# File 'generated/google/apis/youtube_v3/classes.rb', line 7117

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

Instance Attribute Details

#alcohol_contentBoolean Also known as: alcohol_content?

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

Returns:

  • (Boolean)


7101
7102
7103
# File 'generated/google/apis/youtube_v3/classes.rb', line 7101

def alcohol_content
  @alcohol_content
end

#restrictedBoolean Also known as: restricted?

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

Returns:

  • (Boolean)


7109
7110
7111
# File 'generated/google/apis/youtube_v3/classes.rb', line 7109

def restricted
  @restricted
end

#video_game_ratingString

Video game rating, if any. Corresponds to the JSON property videoGameRating

Returns:

  • (String)


7115
7116
7117
# File 'generated/google/apis/youtube_v3/classes.rb', line 7115

def video_game_rating
  @video_game_rating
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7122
7123
7124
7125
7126
# File 'generated/google/apis/youtube_v3/classes.rb', line 7122

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