Class: Sink::Resources::Recursion::SharedResponses

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/recursion/shared_responses.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ SharedResponses

Returns a new instance of SharedResponses.

Parameters:


8
9
10
# File 'lib/sink/resources/recursion/shared_responses.rb', line 8

def initialize(client:)
  @client = client
end

Instance Method Details

#create_self(opts = {}) ⇒ Sink::Models::SharedSelfRecursion

Parameters:

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

    Options to specify HTTP behaviour for this request.

Returns:


15
16
17
18
19
20
21
22
# File 'lib/sink/resources/recursion/shared_responses.rb', line 15

def create_self(opts = {})
  req = {
    method: :post,
    path: "/recursion/shared/responses/self",
    model: Sink::Models::SharedSelfRecursion
  }
  @client.request(req, opts)
end