lib/recurly/pager.rb in recurly-4.0.0 vs lib/recurly/pager.rb in recurly-4.0.1
- old
+ new
@@ -22,11 +22,11 @@
@data.first
end
# Makes a HEAD request to the API to determine how many total records exist.
def count
- resource = @client.send(:head, self.next, @options)
+ resource = @client.send(:head, self.next, **@options)
resource.get_response.total_records
end
# Enumerates each "page" from the server.
# This method yields a given block with the array of items
@@ -114,10 +114,10 @@
end
end
def fetch_next!(options)
path = extract_path(self.next)
- page = @client.send(:get, path, options)
+ page = @client.send(:get, path, **options)
@data = page.data.map { |d| JSONParser.from_json(d) }
@has_more = page.has_more
@next = page.next
end