Class: Sink::Resources::Types::WriteOnlyResponses

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/types/write_only_responses.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ WriteOnlyResponses

Returns a new instance of WriteOnlyResponses.

Parameters:



8
9
10
# File 'lib/sink/resources/types/write_only_responses.rb', line 8

def initialize(client:)
  @client = client
end

Instance Method Details

#simple(opts = {}) ⇒ Sink::Models::WriteOnlyResponseSimpleResponse

Endpoint with a response schema object that contains a ‘writeOnly` property.

Parameters:

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



17
18
19
20
21
22
23
24
# File 'lib/sink/resources/types/write_only_responses.rb', line 17

def simple(opts = {})
  req = {
    method: :get,
    path: "/types/write_only_responses/simple",
    model: Sink::Models::WriteOnlyResponseSimpleResponse
  }
  @client.request(req, opts)
end