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_topics(query, options = {}) ⇒ Sawyer::Resource
Search topics.
-
#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 |
# 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
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_topics(query, options = {}) ⇒ Sawyer::Resource
Search topics
77 78 79 |
# 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
91 92 93 |
# File 'lib/octokit/client/search.rb', line 91 def search_users(query, = {}) search 'search/users', query, end |