Module: Octokit::Client::LegacySearch
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/legacy_search.rb
Overview
Methods for the Legacy Search API
Instance Method Summary collapse
-
#legacy_search_issues(repo, search_term, state = 'open', options = {}) ⇒ Array<Sawyer::Resource>
Legacy search issues within a repository.
-
#legacy_search_repositories(q, options = {}) ⇒ Array<Sawyer::Resource>
Legacy repository search.
-
#legacy_search_users(search, options = {}) ⇒ Array<Sawyer::Resource>
Search for user.
Instance Method Details
#legacy_search_issues(repo, search_term, state = 'open', options = {}) ⇒ Array<Sawyer::Resource>
Legacy search issues within a repository
26 27 28 |
# File 'lib/octokit/client/legacy_search.rb', line 26 def legacy_search_issues(repo, search_term, state='open', = {}) get("legacy/issues/search/#{Repository.new(repo)}/#{state}/#{search_term}", )['issues'] end |
#legacy_search_repositories(q, options = {}) ⇒ Array<Sawyer::Resource>
Legacy repository search
14 15 16 |
# File 'lib/octokit/client/legacy_search.rb', line 14 def legacy_search_repositories(q, = {}) get("legacy/repos/search/#{q}", )['repositories'] end |
#legacy_search_users(search, options = {}) ⇒ Array<Sawyer::Resource>
Search for user.
37 38 39 |
# File 'lib/octokit/client/legacy_search.rb', line 37 def legacy_search_users(search, = {}) get("legacy/user/search/#{search}", )['users'] end |