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_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_issues(query, options = {}) ⇒ Sawyer::Resource
Search issues
33 34 35 |
# File 'lib/octokit/client/search.rb', line 33 def search_issues(query, = {}) search "/search/issues", query, end |
#search_repositories(query, options = {}) ⇒ Sawyer::Resource Also known as: search_repos
Search repositories
47 48 49 |
# File 'lib/octokit/client/search.rb', line 47 def search_repositories(query, = {}) search "/search/repositories", query, end |
#search_users(query, options = {}) ⇒ Sawyer::Resource
Search users
62 63 64 |
# File 'lib/octokit/client/search.rb', line 62 def search_users(query, = {}) search "/search/users", query, end |