Class: Sink::Resources::Recursion::SharedResponses
- Inherits:
-
Object
- Object
- Sink::Resources::Recursion::SharedResponses
- Defined in:
- lib/sink/resources/recursion/shared_responses.rb
Instance Method Summary collapse
- #create_self(opts = {}) ⇒ Sink::Models::SharedSelfRecursion
-
#initialize(client:) ⇒ SharedResponses
constructor
A new instance of SharedResponses.
Constructor Details
#initialize(client:) ⇒ SharedResponses
Returns a new instance of SharedResponses.
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
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 |