Method: DuffelAPI::Services::OfferRequestsService#all
- Defined in:
- lib/duffel_api/services/offer_requests_service.rb
#all(options = {}) ⇒ Enumerator
Returns an ‘Enumerator` which can automatically cycle through multiple pages of `Resources::OfferRequest`s.
By default, this will use pages of 200 results under the hood, but this can be customised by specifying the ‘:limit` option in the `:params`.
71 72 73 74 75 76 77 78 |
# File 'lib/duffel_api/services/offer_requests_service.rb', line 71 def all( = {}) [:params] = DEFAULT_ALL_PARAMS.merge([:params] || {}) Paginator.new( service: self, options: , ).enumerator end |