Class: Sink::Resources::Resources
- Inherits:
-
Object
- Object
- Sink::Resources::Resources
- Defined in:
- lib/sink/resources/resources.rb
Instance Method Summary collapse
-
#foo(opts = {}) ⇒ nil
Endpoint returning no response.
-
#initialize(client:) ⇒ Resources
constructor
A new instance of Resources.
Constructor Details
#initialize(client:) ⇒ Resources
Returns a new instance of Resources.
7 8 9 |
# File 'lib/sink/resources/resources.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#foo(opts = {}) ⇒ nil
Endpoint returning no response
16 17 18 19 20 21 22 23 |
# File 'lib/sink/resources/resources.rb', line 16 def foo(opts = {}) req = { method: :post, path: "/no_response", model: NilClass } @client.request(req, opts) end |