File tree Expand file tree Collapse file tree 6 files changed +7
-35
lines changed
Expand file tree Collapse file tree 6 files changed +7
-35
lines changed Original file line number Diff line number Diff line change 11# Orb Ruby API library
22
3- The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.0 .0+ application.
3+ The Orb Ruby library provides convenient access to the Orb REST API from any Ruby 3.1 .0+ application.
44
55## Documentation
66
@@ -166,4 +166,4 @@ This package considers improvements to the (non-runtime) `*.rbi` and `*.rbs` typ
166166
167167## Requirements
168168
169- Ruby 3.0 .0 or higher.
169+ Ruby 3.1 .0 or higher.
Original file line number Diff line number Diff line change @@ -11,18 +11,6 @@ module Internal
1111 # page.auto_paging_each do |coupon|
1212 # puts(coupon)
1313 # end
14- #
15- # @example
16- # coupons =
17- # page
18- # .to_enum
19- # .lazy
20- # .select { _1.object_id.even? }
21- # .map(&:itself)
22- # .take(2)
23- # .to_a
24- #
25- # coupons => Array
2614 class Page
2715 include Orb ::Internal ::Type ::BasePage
2816
Original file line number Diff line number Diff line change 33module Orb
44 module Internal
55 module Type
6- # @example
7- # if page.has_next?
8- # page = page.next_page
9- # end
10- #
11- # @example
12- # page.auto_paging_each do |top_level|
13- # puts(top_level)
14- # end
15- #
16- # @example
17- # top_levels =
18- # page
19- # .to_enum
20- # .lazy
21- # .select { _1.object_id.even? }
22- # .map(&:itself)
23- # .take(2)
24- # .to_a
25- #
26- # top_levels => Array
6+ # This module provides a base implementation for paginated responses in the SDK.
277 module BasePage
288 # rubocop:disable Lint/UnusedMethodArgument
299
Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ module Orb
66 # Due to the current WIP status of Shapes support in Sorbet, types referencing
77 # this alias might be refined in the future.
88 AnyHash = T . type_alias { T ::Hash [ Symbol , T . anything ] }
9+
10+ OMIT = T . let ( T . anything , T . anything )
911 end
1012end
Original file line number Diff line number Diff line change 33module Orb
44 module Internal
55 module Type
6+ # This module provides a base implementation for paginated responses in the SDK.
67 module BasePage
78 Elem = type_member ( :out )
89
Original file line number Diff line number Diff line change 11module Orb
22 module Internal
3+ OMIT: top
34 end
45end
You can’t perform that action at this time.
0 commit comments