lib/jamf/api/jamf_pro/mixins/collection_resource.rb in ruby-jss-3.0.0 vs lib/jamf/api/jamf_pro/mixins/collection_resource.rb in ruby-jss-3.1.0b1

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright 2022 Pixar +# Copyright 2023 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: @@ -286,9 +286,10 @@ # arbitrary pages from the collection. # def pager(page_size: Jamf::Pager::DEFAULT_PAGE_SIZE, sort: nil, filter: nil, instantiate: false, cnx: Jamf.cnx) sort = Jamf::Sortable.parse_url_sort_param(sort) filter = filterable? ? Jamf::Filterable.parse_url_filter_param(filter) : nil + instantiate &&= self Jamf::Pager.new( page_size: page_size, list_path: self::LIST_PATH, sort: sort,