Class: Google::Apis::YoutubeV3::VideoAgeGating
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::YoutubeV3::VideoAgeGating
 
 
- 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 
Instance Attribute Summary collapse
- 
  
    
      #alcohol_content  ⇒ Boolean 
    
    
      (also: #alcohol_content?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Indicates whether or not the video has alcoholic beverage content.
 - 
  
    
      #restricted  ⇒ Boolean 
    
    
      (also: #restricted?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Age-restricted trailers.
 - 
  
    
      #video_game_rating  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Video game rating, if any.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VideoAgeGating 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of VideoAgeGating.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ VideoAgeGating
Returns a new instance of VideoAgeGating.
      7957 7958 7959  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 7957 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#alcohol_content ⇒ Boolean 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
      7941 7942 7943  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 7941 def alcohol_content @alcohol_content end  | 
  
#restricted ⇒ Boolean 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
      7949 7950 7951  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 7949 def restricted @restricted end  | 
  
#video_game_rating ⇒ String
Video game rating, if any.
Corresponds to the JSON property videoGameRating
      7955 7956 7957  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 7955 def @video_game_rating end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      7962 7963 7964 7965 7966  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 7962 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  |