Module: Octokit::Client::Search
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/search.rb
Overview
Methods for the Search API
Instance Method Summary collapse
-
#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_repositories(query, options = {}) ⇒ Sawyer::Resource
(also: #search_repos)
Search repositories.
-
#search_users(query, options = {}) ⇒ Sawyer::Resource
Search users.
Instance Method Details
#search_code(query, options = {}) ⇒ Sawyer::Resource
Search code
19 20 21 |
# 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
33 34 35 36 |
# File 'lib/octokit/client/search.rb', line 33 def search_commits(query, = {}) = ensure_api_media_type(:commit_search, ) search "search/commits", query, end |
#search_issues(query, options = {}) ⇒ Sawyer::Resource
Search issues
48 49 50 |
# File 'lib/octokit/client/search.rb', line 48 def search_issues(query, = {}) search "search/issues", query, end |
#search_repositories(query, options = {}) ⇒ Sawyer::Resource Also known as: search_repos
Search repositories
62 63 64 |
# File 'lib/octokit/client/search.rb', line 62 def search_repositories(query, = {}) search "search/repositories", query, end |
#search_users(query, options = {}) ⇒ Sawyer::Resource
Search users
77 78 79 |
# File 'lib/octokit/client/search.rb', line 77 def search_users(query, = {}) search "search/users", query, end |