class Github::Search

def code(*args)


github.search.code email: 'wycats'
github = Github.new
= Examples

One of asc or desc; the default is desc.
:order - Optional Sort order if sort parameter is provided.
results are sorted by best match.
by the GitHub search infrastructure. If not provided,
indicates how recently a file has been indexed
:sort - Optional sort field. Can only be indexed, which
supported issue search parameters.
:q - The search terms. This can be any combination of the
= Parameters

(This method returns up to 100 results per page.)
Find file contents via various criteria.
def code(*args)
  params = arguments(args, required: [:q]).params
  params['q']      ||= q
  params['accept'] ||= PREVIEW_MEDIA
  get_request('/search/code', params)
end