Sha256: f7f6d82574e88a8c525f870cbaa0bfc3b623a0a1531467f3bd0ebaf6e74ad5f3
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true module Helio module APIOperations module List def list(filters = {}, opts = {}) opts = Util.normalize_opts(opts) resp, opts = request(:get, resource_url, filters, opts) obj = ListObject.construct_from(resp.data, opts) # set filters so that we can fetch the same limit, expansions, and # predicates when accessing the next and previous pages # # just for general cleanliness, remove any paging options obj.filters = filters.dup obj.filters.delete(:ending_before) obj.filters.delete(:starting_after) obj end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
helio-ruby-0.3.1 | lib/helio/api_operations/list.rb |
helio-ruby-0.3.0 | lib/helio/api_operations/list.rb |
helio-ruby-0.2.0 | lib/helio/api_operations/list.rb |