Class: KlaviyoAPI::Collections::ListMembershipCollection
- Inherits:
-
MarkerCollection
- Object
- ActiveResource::Collection
- MarkerCollection
- KlaviyoAPI::Collections::ListMembershipCollection
- Defined in:
- lib/klaviyo_api/collections/list_membership_collection.rb
Overview
ListMembershipCollection, as opposed to ListMemberCollection. This is a collection of ListMembers, but specifically in the context of the Group Memberships endpoint of a List. (www.klaviyo.com/docs/api/v2/lists#get-members-all)
Instance Attribute Summary
Attributes inherited from MarkerCollection
Instance Method Summary collapse
Methods inherited from MarkerCollection
#initialize, #more_pages?, #next_page_marker_name
Constructor Details
This class inherits a constructor from KlaviyoAPI::Collections::MarkerCollection
Instance Method Details
#next_page ⇒ Object
9 10 11 12 13 14 |
# File 'lib/klaviyo_api/collections/list_membership_collection.rb', line 9 def next_page # Return empty collection if no other pages return self.class.new unless more_pages? KlaviyoAPI::ListMember.all_members params: { **first., **original_params, "#{next_page_marker_name}": marker } end |