Class: Sink::Resources::Types::Enums
- Inherits:
-
Object
- Object
- Sink::Resources::Types::Enums
- Defined in:
- lib/sink/resources/types/enums.rb
Instance Method Summary collapse
-
#array_unique_values(params = {}, opts = {}) ⇒ nil
Endpoint that has an array of enum that should generate a valid test with non-repeating values in the array.
-
#array_unique_values_2_values(params = {}, opts = {}) ⇒ nil
Endpoint that has an array of enum that should generate a valid test with 2 non-repeating values in the array.
-
#array_unique_values_numbers(params = {}, opts = {}) ⇒ nil
Endpoint that has an array of enum that should generate a valid test with 2 non-repeating values in the array.
-
#basic(params = {}, opts = {}) ⇒ Sink::Models::EnumBasicResponse
Endpoint that has a ‘$ref`d enum type in the request body and the response body.
-
#initialize(client:) ⇒ Enums
constructor
A new instance of Enums.
Constructor Details
#initialize(client:) ⇒ Enums
Returns a new instance of Enums.
8 9 10 |
# File 'lib/sink/resources/types/enums.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#array_unique_values(params = {}, opts = {}) ⇒ nil
Endpoint that has an array of enum that should generate a valid test with
non-repeating values in the array.
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/sink/resources/types/enums.rb', line 21 def array_unique_values(params = {}, opts = {}) req = { method: :post, path: "/types/enum_tests_array_unique_values", body: params[:body], headers: {"Content-Type" => "application/json"}, model: NilClass } @client.request(req, opts) end |
#array_unique_values_2_values(params = {}, opts = {}) ⇒ nil
Endpoint that has an array of enum that should generate a valid test with 2
non-repeating values in the array.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/sink/resources/types/enums.rb', line 41 def array_unique_values_2_values(params = {}, opts = {}) req = { method: :post, path: "/types/enum_tests_array_unique_values_2_values", body: params[:body], headers: {"Content-Type" => "application/json"}, model: NilClass } @client.request(req, opts) end |
#array_unique_values_numbers(params = {}, opts = {}) ⇒ nil
Endpoint that has an array of enum that should generate a valid test with 2
non-repeating values in the array.
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/sink/resources/types/enums.rb', line 61 def array_unique_values_numbers(params = {}, opts = {}) req = { method: :post, path: "/types/enum_tests_array_unique_values_numbers", body: params[:body], headers: {"Content-Type" => "application/json"}, model: NilClass } @client.request(req, opts) end |
#basic(params = {}, opts = {}) ⇒ Sink::Models::EnumBasicResponse
Endpoint that has a ‘$ref`d enum type in the request body and the response body.
82 83 84 85 86 87 88 89 90 91 |
# File 'lib/sink/resources/types/enums.rb', line 82 def basic(params = {}, opts = {}) req = { method: :post, path: "/types/enums", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::EnumBasicResponse } @client.request(req, opts) end |