Class: Sink::Resources::PaginationTests::SchemaTypes
- Inherits:
-
Object
- Object
- Sink::Resources::PaginationTests::SchemaTypes
- Defined in:
- lib/sink/resources/pagination_tests/schema_types.rb
Instance Method Summary collapse
-
#allofs(params = {}, opts = {}) ⇒ Sink::PageCursor<Sink::Models::MyModel>
Test case for a cursor endpoint that defines properties using allOf.
-
#initialize(client:) ⇒ SchemaTypes
constructor
A new instance of SchemaTypes.
-
#unions(params = {}, opts = {}) ⇒ Sink::PageCursor<Sink::Models::MyModel>
Test case for a cursor endpoint that returns an anyOf.
Constructor Details
#initialize(client:) ⇒ SchemaTypes
Returns a new instance of SchemaTypes.
8 9 10 |
# File 'lib/sink/resources/pagination_tests/schema_types.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#allofs(params = {}, opts = {}) ⇒ Sink::PageCursor<Sink::Models::MyModel>
Test case for a cursor endpoint that defines properties using allOf
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/sink/resources/pagination_tests/schema_types.rb', line 21 def allofs(params = {}, opts = {}) req = { method: :get, path: "/paginated/schema_types/allofs", query: params, page: Sink::PageCursor, model: Sink::Models::MyModel } @client.request(req, opts) end |
#unions(params = {}, opts = {}) ⇒ Sink::PageCursor<Sink::Models::MyModel>
Test case for a cursor endpoint that returns an anyOf
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/sink/resources/pagination_tests/schema_types.rb', line 41 def unions(params = {}, opts = {}) req = { method: :get, path: "/paginated/schema_types/unions", query: params, page: Sink::PageCursor, model: Sink::Models::MyModel } @client.request(req, opts) end |