Module: Octokit::Client::LegacySearch
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/client/legacy_search.rb |
Overview
Methods for the Legacy Search API
Instance Method Summary
-
#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
# 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
# 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.
# File 'lib/octokit/client/legacy_search.rb', line 37
def legacy_search_users(search, = {}) get("legacy/user/search/#{search}", )['users'] end