Class: Telnyx::Resources::AI::Assistants::Tests::TestSuites

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/ai/assistants/tests/test_suites.rb,
lib/telnyx/resources/ai/assistants/tests/test_suites/runs.rb

Defined Under Namespace

Classes: Runs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ TestSuites

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of TestSuites.

Parameters:



33
34
35
36
# File 'lib/telnyx/resources/ai/assistants/tests/test_suites.rb', line 33

def initialize(client:)
  @client = client
  @runs = Telnyx::Resources::AI::Assistants::Tests::TestSuites::Runs.new(client: client)
end

Instance Attribute Details

#runsTelnyx::Resources::AI::Assistants::Tests::TestSuites::Runs (readonly)



10
11
12
# File 'lib/telnyx/resources/ai/assistants/tests/test_suites.rb', line 10

def runs
  @runs
end

Instance Method Details

#list(request_options: {}) ⇒ Telnyx::Models::AI::Assistants::Tests::TestSuiteListResponse

Retrieves a list of all distinct test suite names available to the current user



21
22
23
24
25
26
27
28
# File 'lib/telnyx/resources/ai/assistants/tests/test_suites.rb', line 21

def list(params = {})
  @client.request(
    method: :get,
    path: "ai/assistants/tests/test-suites",
    model: Telnyx::Models::AI::Assistants::Tests::TestSuiteListResponse,
    options: params[:request_options]
  )
end