Class: Twitch::SearchResource
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#categories(query:, **params) ⇒ Object
3
4
5
6
7
|
# File 'lib/twitch/resources/search.rb', line 3
def categories(query:, **params)
response = get_request("search/categories", params: params.merge(query: query))
Collection.from_response(response, type: SearchResult)
end
|
#channels(query:, **params) ⇒ Object
9
10
11
12
13
|
# File 'lib/twitch/resources/search.rb', line 9
def channels(query:, **params)
response = get_request("search/channels", params: params.merge(query: query))
Collection.from_response(response, type: SearchResult)
end
|