Module: IdigbioClient::Search
- Extended by:
- Helper
- Defined in:
- lib/idigbio_client/search.rb
Overview
Performs Searh over iDigBio Resources
Class Method Summary collapse
Methods included from Helper
get, normalize_type, post, post?, query, request, symbolize, url_params
Class Method Details
.search(opts) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/idigbio_client/search.rb', line 7 def search(opts) opts = prepare_opts(opts) resp = paginate(opts) resp[:items] = resp[:items][0...opts[:params][:limit]] block_given? ? yield(resp) : resp end |