Class: Sink::Resources::PaginationTests::NestedItems
- Inherits:
-
Object
- Object
- Sink::Resources::PaginationTests::NestedItems
- Defined in:
- lib/sink/resources/pagination_tests/nested_items.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ NestedItems
constructor
A new instance of NestedItems.
-
#list(params = {}, opts = {}) ⇒ Sink::PageCursorNestedItems<Sink::Models::MyModel>
Test case for response headers with cursor pagination.
Constructor Details
#initialize(client:) ⇒ NestedItems
Returns a new instance of NestedItems.
8 9 10 |
# File 'lib/sink/resources/pagination_tests/nested_items.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Sink::PageCursorNestedItems<Sink::Models::MyModel>
Test case for response headers with cursor pagination
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/sink/resources/pagination_tests/nested_items.rb', line 21 def list(params = {}, opts = {}) req = { method: :get, path: "/paginated/nested_items", query: params, page: Sink::PageCursorNestedItems, model: Sink::Models::MyModel } @client.request(req, opts) end |