Sha256: 79e4b7b8866a62099bd5a24fbe3e0cda29936185b0e3edb96e2fbec89aabee4f

Contents?: true

Size: 552 Bytes

Versions: 7

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

require_relative "base"
require_relative "../../ext/transport"

module Datadog
  module CI
    module Transport
      module Api
        class CiTestCycle < Base
          attr_reader :api_key

          def initialize(api_key:, http:)
            @api_key = api_key

            super(http: http)
          end

          private

          def headers
            headers = super
            headers[Ext::Transport::HEADER_DD_API_KEY] = api_key
            headers
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog-ci-0.7.0 lib/datadog/ci/transport/api/ci_test_cycle.rb
datadog-ci-0.6.0 lib/datadog/ci/transport/api/ci_test_cycle.rb
datadog-ci-0.5.1 lib/datadog/ci/transport/api/ci_test_cycle.rb
datadog-ci-0.5.0 lib/datadog/ci/transport/api/ci_test_cycle.rb
datadog-ci-0.4.1 lib/datadog/ci/transport/api/ci_test_cycle.rb
datadog-ci-0.4.0 lib/datadog/ci/transport/api/ci_test_cycle.rb
datadog-ci-0.3.0 lib/datadog/ci/transport/api/ci_test_cycle.rb