Class: YouTube::SearchResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/you_tube/resources/search.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from YouTube::Resource

Instance Method Details

#list(**params) ⇒ Object



4
5
6
7
# File 'lib/you_tube/resources/search.rb', line 4

def list(**params)
  response = get_request "search", params: {part: "id,snippet"}.merge(params)
  Collection.from_response(response, type: SearchResult)
end