Class: Sink::Resources::Testing

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Testing

Returns a new instance of Testing.

Parameters:



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

Parameters:

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

    Options to specify HTTP behaviour for this request.

Returns:



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