Sha256: eb219663ca0c6ceefecc49b867417827a1fcba7e5bc53bf2cbcfe567d4af4783

Contents?: true

Size: 513 Bytes

Versions: 21

Compression:

Stored size: 513 Bytes

Contents

require_relative 'base_decorator'

module PactBroker
  module Api
    module Decorators
      class WebhookRequestTemplateDecorator < BaseDecorator

        property :method
        property :url
        property :headers, getter: lambda { | _ | headers.empty? ? nil : self.redacted_headers }
        property :body
        property :username
        property :password, getter: lambda { | _ | display_password }


        def redacted_headers
          represented.headers
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pact_broker-2.34.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.33.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.32.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.31.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.30.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.29.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.27.6 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.27.5 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.27.4 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.27.3 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.27.2 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.27.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.26.1 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.26.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.25.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.24.0 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.23.4 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.23.3 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.23.2 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb
pact_broker-2.23.1 lib/pact_broker/api/decorators/webhook_request_template_decorator.rb