Class: Sink::Resources::Types::Primitives
- Inherits:
-
Object
- Object
- Sink::Resources::Types::Primitives
- Defined in:
- lib/sink/resources/types/primitives.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Primitives
constructor
A new instance of Primitives.
-
#strings(params = {}, opts = {}) ⇒ Sink::Models::PrimitiveStringsResponse
Endpoint that has a request body property that points to a string model & returns an object with a string model prop.
Constructor Details
#initialize(client:) ⇒ Primitives
Returns a new instance of Primitives.
8 9 10 |
# File 'lib/sink/resources/types/primitives.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#strings(params = {}, opts = {}) ⇒ Sink::Models::PrimitiveStringsResponse
Endpoint that has a request body property that points to a string model &
returns an object with a string model prop
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/sink/resources/types/primitives.rb', line 21 def strings(params = {}, opts = {}) req = { method: :post, path: "/types/primitives/strings", body: params, headers: {"Content-Type" => "application/json"}, model: Sink::Models::PrimitiveStringsResponse } @client.request(req, opts) end |