Module: Octokit::Client::Search
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/client/search.rb |
Overview
Methods for the Search
API
Instance Method Summary
-
#search_code(query, options = {}) ⇒ Sawyer::Resource
Search
code. -
#search_commits(query, options = {}) ⇒ Sawyer::Resource
Search
commits. -
#search_issues(query, options = {}) ⇒ Sawyer::Resource
Search
issues. -
#search_repos(query, options = {})
Alias for #search_repositories.
-
#search_repositories(query, options = {}) ⇒ Sawyer::Resource
(also: #search_repos)
Search
repositories. -
#search_topics(query, options = {}) ⇒ Sawyer::Resource
Search
topics. -
#search_users(query, options = {}) ⇒ Sawyer::Resource
Search
users. - #search(path, query, options = {}) private
Instance Method Details
#search(path, query, options = {}) (private)
[ GitHub ]# File 'lib/octokit/client/search.rb', line 97
def search(path, query, = {}) opts = .merge(q: query) paginate(path, opts) do |data, last_response| data.items.concat last_response.data.items end end
#search_code(query, options = {}) ⇒ Sawyer::Resource
Search
code
# File 'lib/octokit/client/search.rb', line 19
def search_code(query, = {}) search 'search/code', query, end
#search_commits(query, options = {}) ⇒ Sawyer::Resource
Search
commits
# File 'lib/octokit/client/search.rb', line 33
def search_commits(query, = {}) search 'search/commits', query, end
#search_issues(query, options = {}) ⇒ Sawyer::Resource
Search
issues
# File 'lib/octokit/client/search.rb', line 48
def search_issues(query, = {}) search 'search/issues', query, end
#search_repos(query, options = {})
Alias for #search_repositories.
# File 'lib/octokit/client/search.rb', line 65
alias search_repos search_repositories
#search_repositories(query, options = {}) ⇒ Sawyer::Resource
Also known as: #search_repos
Search
repositories
# File 'lib/octokit/client/search.rb', line 62
def search_repositories(query, = {}) search 'search/repositories', query, end
#search_topics(query, options = {}) ⇒ Sawyer::Resource
Search
topics
# File 'lib/octokit/client/search.rb', line 77
def search_topics(query, = {}) search 'search/topics', query, end
#search_users(query, options = {}) ⇒ Sawyer::Resource
Search
users
# File 'lib/octokit/client/search.rb', line 91
def search_users(query, = {}) search 'search/users', query, end