Class: Sink::Resources::Testing
- Inherits:
-
Object
- Object
- Sink::Resources::Testing
- Defined in:
- lib/sink/resources/testing.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Testing
constructor
A new instance of Testing.
- #root(opts = {}) ⇒ Sink::Models::RootResponse
Constructor Details
#initialize(client:) ⇒ Testing
Returns a new instance of Testing.
7 8 9 |
# File 'lib/sink/resources/testing.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#root(opts = {}) ⇒ Sink::Models::RootResponse
14 15 16 17 18 19 20 21 |
# File 'lib/sink/resources/testing.rb', line 14 def root(opts = {}) req = { method: :get, path: "/", model: Sink::Models::RootResponse } @client.request(req, opts) end |