Class: KnapsackPro::Client::API::V1::BuildSubsets

Inherits:
Base
  • Object
show all
Defined in:
lib/knapsack_pro/client/api/v1/build_subsets.rb

Class Method Summary collapse

Class Method Details

.create(commit_hash:, branch:, node_total:, node_index:, test_files:) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/knapsack_pro/client/api/v1/build_subsets.rb', line 7

def create(commit_hash:,
           branch:,
           node_total:,
           node_index:,
           test_files:)
  action_class.new(
    endpoint_path: '/v1/build_subsets',
    http_method: :post,
    request_hash: {
      :commit_hash => commit_hash,
      :branch => branch,
      :node_total => node_total,
      :node_index => node_index,
      :test_files => test_files
    }
  )
end