Class: Openlayer::Resources::Commits::TestResults
- Inherits:
-
Object
- Object
- Openlayer::Resources::Commits::TestResults
- Defined in:
- lib/openlayer/resources/commits/test_results.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ TestResults
constructor
private
A new instance of TestResults.
-
#list(project_version_id, include_archived: nil, page: nil, per_page: nil, status: nil, type: nil, request_options: {}) ⇒ Openlayer::Models::Commits::TestResultListResponse
Some parameter documentations has been truncated, see Models::Commits::TestResultListParams for more details.
Constructor Details
#initialize(client:) ⇒ TestResults
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 TestResults.
45 46 47 |
# File 'lib/openlayer/resources/commits/test_results.rb', line 45 def initialize(client:) @client = client end |
Instance Method Details
#list(project_version_id, include_archived: nil, page: nil, per_page: nil, status: nil, type: nil, request_options: {}) ⇒ Openlayer::Models::Commits::TestResultListResponse
Some parameter documentations has been truncated, see Models::Commits::TestResultListParams for more details.
List the test results for a project commit (project version).
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/openlayer/resources/commits/test_results.rb', line 31 def list(project_version_id, params = {}) parsed, = Openlayer::Commits::TestResultListParams.dump_request(params) @client.request( method: :get, path: ["versions/%1$s/results", project_version_id], query: parsed.transform_keys(include_archived: "includeArchived", per_page: "perPage"), model: Openlayer::Models::Commits::TestResultListResponse, options: ) end |