Class: Sink::Resources::PaginationTests::ItemsTypes
- Inherits:
-
Object
- Object
- Sink::Resources::PaginationTests::ItemsTypes
- Defined in:
- lib/sink/resources/pagination_tests/items_types.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ ItemsTypes
constructor
A new instance of ItemsTypes.
-
#list_unknown(params = {}, opts = {}) ⇒ Sink::PagePageNumber<Object>
Test case for paginated items of ‘unknown` types with page_number pagination.
Constructor Details
#initialize(client:) ⇒ ItemsTypes
Returns a new instance of ItemsTypes.
8 9 10 |
# File 'lib/sink/resources/pagination_tests/items_types.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#list_unknown(params = {}, opts = {}) ⇒ Sink::PagePageNumber<Object>
Test case for paginated items of ‘unknown` types with page_number pagination
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/sink/resources/pagination_tests/items_types.rb', line 21 def list_unknown(params = {}, opts = {}) req = { method: :get, path: "/paginated/items_types/unknown", query: params, page: Sink::PagePageNumber, model: Sink::Unknown } @client.request(req, opts) end |