Class: Google::Apis::YoutubeV3::SearchResult
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::YoutubeV3::SearchResult
 
 
- 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 
Overview
A search result contains information about a YouTube video, channel, or playlist that matches the search parameters specified in an API request. While a search result points to a uniquely identifiable resource, like a video, it does not have its own persistent data.
Instance Attribute Summary collapse
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Etag of this resource.
 - 
  
    
      #id  ⇒ Google::Apis::YoutubeV3::ResourceId 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A resource id is a generic reference that points to another YouTube resource.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Identifies what kind of resource this is.
 - 
  
    
      #snippet  ⇒ Google::Apis::YoutubeV3::SearchResultSnippet 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Basic details about a search result, including title, description and thumbnails of the item referenced by the search result.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SearchResult 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SearchResult.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ SearchResult
Returns a new instance of SearchResult.
      6764 6765 6766  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 6764 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
      6745 6746 6747  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 6745 def etag @etag end  | 
  
#id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Corresponds to the JSON property id
      6750 6751 6752  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 6750 def id @id end  | 
  
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "youtube#
searchResult".
Corresponds to the JSON property kind
      6756 6757 6758  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 6756 def kind @kind end  | 
  
#snippet ⇒ Google::Apis::YoutubeV3::SearchResultSnippet
Basic details about a search result, including title, description and
thumbnails of the item referenced by the search result.
Corresponds to the JSON property snippet
      6762 6763 6764  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 6762 def snippet @snippet end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      6769 6770 6771 6772 6773 6774  | 
    
      # File 'lib/google/apis/youtube_v3/classes.rb', line 6769 def update!(**args) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @snippet = args[:snippet] if args.key?(:snippet) end  |