pack_api 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pack_api/types/collection_result_metadata.rb +5 -1
- data/lib/pack_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba2280dd3e96dd6777182d4a062add14c4628d2b13c685d9253c4a97bb71410c
|
|
4
|
+
data.tar.gz: 1b2f65265fea8c021cb4113d8bf7ab1579ac33d6c53e7d7959587822fcf680ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c86ca551b27873c548751c38e93b83ff5a88ed72e17b3c5bffa0f8f366ea14883b7ed88349e146dc954db5fc16fd2b4d77eb946483b896d9ef920533a4fc30c
|
|
7
|
+
data.tar.gz: 44ef8538df6798540fc6d7c65a609a5105c25192597c4126d897e0028d41fda55f88d44dbc08bd5c7ecd488d05f9aee4987ef054dbc38b01dd2b14eb429735ef
|
|
@@ -4,9 +4,13 @@ module PackAPI::Types
|
|
|
4
4
|
class CollectionResultMetadata < Dry::Struct
|
|
5
5
|
attribute :first_item, Types::Integer
|
|
6
6
|
attribute :last_item, Types::Integer
|
|
7
|
-
attribute :per_page, Types::Integer
|
|
8
7
|
attribute :total_items, Types::Integer
|
|
9
8
|
|
|
9
|
+
# the page size (input) -- can be different than actual number of items in the result for 2 reasons:
|
|
10
|
+
# - single page scenario: per_page = :all (symbol)
|
|
11
|
+
# - last page scenario: per_page = N (integer), but there are fewer than N items remaining in the result set
|
|
12
|
+
attribute :per_page, Types::Integer | Types::Symbol
|
|
13
|
+
|
|
10
14
|
###
|
|
11
15
|
# Cursors for the current record set (see PackAPI::Paginator)
|
|
12
16
|
attribute? :next_page_cursor, Types::String.optional
|
data/lib/pack_api/version.rb
CHANGED