Class: Google::Apis::YoutubeV3::PlaylistItemContentDetails
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubeV3::PlaylistItemContentDetails
 
- 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
- 
  
    
      #end_at  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time, measured in seconds from the start of the video, when the video should stop playing. 
- 
  
    
      #note  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A user-generated note for this item. 
- 
  
    
      #start_at  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time, measured in seconds from the start of the video, when the video should start playing. 
- 
  
    
      #video_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID that YouTube uses to uniquely identify a video. 
- 
  
    
      #video_published_at  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date and time that the video was published to YouTube. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PlaylistItemContentDetails 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PlaylistItemContentDetails. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PlaylistItemContentDetails
Returns a new instance of PlaylistItemContentDetails
| 5451 5452 5453 | # File 'generated/google/apis/youtube_v3/classes.rb', line 5451 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#end_at ⇒ String
The time, measured in seconds from the start of the video, when the video
should stop playing. (The playlist owner can specify the times when the video
should start and stop playing when the video is played in the context of the
playlist.) By default, assume that the video.endTime is the end of the video.
Corresponds to the JSON property endAt
| 5424 5425 5426 | # File 'generated/google/apis/youtube_v3/classes.rb', line 5424 def end_at @end_at end | 
#note ⇒ String
A user-generated note for this item.
Corresponds to the JSON property note
| 5429 5430 5431 | # File 'generated/google/apis/youtube_v3/classes.rb', line 5429 def note @note end | 
#start_at ⇒ String
The time, measured in seconds from the start of the video, when the video
should start playing. (The playlist owner can specify the times when the video
should start and stop playing when the video is played in the context of the
playlist.) The default value is 0.
Corresponds to the JSON property startAt
| 5437 5438 5439 | # File 'generated/google/apis/youtube_v3/classes.rb', line 5437 def start_at @start_at end | 
#video_id ⇒ String
The ID that YouTube uses to uniquely identify a video. To retrieve the video
resource, set the id query parameter to this value in your API request.
Corresponds to the JSON property videoId
| 5443 5444 5445 | # File 'generated/google/apis/youtube_v3/classes.rb', line 5443 def video_id @video_id end | 
#video_published_at ⇒ DateTime
The date and time that the video was published to YouTube. The value is
specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
Corresponds to the JSON property videoPublishedAt
| 5449 5450 5451 | # File 'generated/google/apis/youtube_v3/classes.rb', line 5449 def video_published_at @video_published_at end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 5456 5457 5458 5459 5460 5461 5462 | # File 'generated/google/apis/youtube_v3/classes.rb', line 5456 def update!(**args) @end_at = args[:end_at] if args.key?(:end_at) @note = args[:note] if args.key?(:note) @start_at = args[:start_at] if args.key?(:start_at) @video_id = args[:video_id] if args.key?(:video_id) @video_published_at = args[:video_published_at] if args.key?(:video_published_at) end |